![]() |
Installing pyperclip module - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Installing pyperclip module (/thread-9782.html) |
Installing pyperclip module - Truman - Apr-27-2018 Hi, not sure that this is the right subforum to ask but it's also not a coding problem so will put it here. I installed pyperclip module in my command prompt by typing pip install pyperclip. Then it installed the module and gave me confirming message. But when I try to import module in my editor and then process it I receive a message ModuleNotFoundError:No module named 'pyperclip' Do you know what's the problem here? RE: Installing pyperclip module - snippsat - Apr-27-2018 (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' RE: Installing pyperclip module - Truman - Apr-28-2018 This is what I got: [Image: j93m90.png] and then after calling my file I receive the same error message ModuleNotFoundError:No module named 'pyperclip' RE: Installing pyperclip module - snippsat - Apr-28-2018 Delete __pycache__ in root of Python36 folder.Run cmd Administrator,try update pip again. (Apr-28-2018, 10:19 PM)Truman Wrote: and then after calling my file I receive the same error message ModuleNotFoundError:No module named 'pyperclip'Do exactly what i have showed in cmd,you most make sure all work from cmd. Then can setup editor later. This stuff has to work or you have to reinstall an follow Python 3.6 and pip installation under Windows RE: Installing pyperclip module - Truman - Apr-28-2018 Access is denied. After trying to activate administrative powers as per your link. RE: Installing pyperclip module - snippsat - Apr-29-2018 I don't know what you are doing. Maybe it's most easy to start fresh with link i posted about install. |