0

I have installed pyperclip, and it works when I use IDLE

>>> import pyperclip
>>> pyperclip.copy('hello')
>>> pyperclip.paste()
'hello'
>>>

but when I use my batch file it says that there is no module named pyperclip

 Traceback (most recent call last):
  File "C:\Python36-32\Scripts\pw.py", line 7, in <module>
    import sys, pyperclip
ModuleNotFoundError: No module named 'pyperclip'
Press any key to continue . . .

this is my batch file:

@C:\Python36-32\python.exe C:\Python36-32\Scripts\pw.py %*
@pause
Lucas Johns
  • 73
  • 1
  • 1
  • 4
  • Possible duplicate of https://stackoverflow.com/questions/43728431/modulenotfounderror-no-module-named-x – jwpfox Jan 06 '18 at 21:07

1 Answers1

0

You may have to download the module from https://pypi.python.org/pypi/pyperclip i am not sure why it isn't finding the module via the python terminal but this might help.

  • I can't seem to do anything with that file on windows. When I use 7zip to extract it, it makes a folder with another tar file in it and trying to extract that does nothing – Lucas Johns Jan 07 '18 at 01:08