Apr-27-2018, 11:30 PM
(Apr-27-2018, 10:22 PM)Truman Wrote: But when I try to import module in my editor and then process it I receive a message ModuleNotFoundError:No module named 'pyperclip'Your editor interpreter(there setup for this) most point to same Python version you have in command line when run pip.
C:\>pip -V pip 9.0.3 from c:\python36\lib\site-packages (python 3.6) C:\>python -V Python 3.6.5 C:\>python -c "import sys; print(sys.executable)" C:\python36\python.exe C:\>pip install pyperclip Collecting pyperclip Downloading https://files.pythonhosted.org/... Installing collected packages: pyperclip Running setup.py install for pyperclip ... done Successfully installed pyperclip-1.6.0 # So now it will of course work,editor may not point to this interpreter C:\>python Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pyperclip >>> pyperclip.copy('test') >>> pyperclip.paste() 'test'