Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing pyperclip module
#1
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?
Reply
#2
(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'
Reply
#3
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'
Reply
#4
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
Reply
#5
Access is denied.

After trying to activate administrative powers as per your link.
Reply
#6
I don't know what you are doing.
Maybe it's most easy to start fresh with link i posted about install.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ERROR WHILE INSTALLING PLAYSOUND MODULE satwants33 2 1,304 Mar-23-2024, 12:50 PM
Last Post: Ritik2508
  Installing time module Led_Zeppelin 2 11,922 Aug-31-2021, 02:16 PM
Last Post: Led_Zeppelin
  Although this is a talib related Q it's mostly related to python module installing.. Evalias123 4 5,680 Jan-10-2021, 11:39 PM
Last Post: Evalias123
  Module not Installing Evil_Patrick 9 4,566 May-27-2020, 03:45 PM
Last Post: Evil_Patrick
  Error after installing Python3.8.2: "No module named 'apt_pkg'" Chromie 3 3,875 Mar-09-2020, 08:20 PM
Last Post: micseydel
  Please help: problem installing/importing langdetect module in Jupyter Notebook ledgreve 3 7,293 Dec-30-2019, 08:17 AM
Last Post: LeanbridgeTech
  Using Pyperclip in Python 3 Does Not Paste Data in Desired Format aspire27 0 2,324 Sep-06-2019, 11:35 PM
Last Post: aspire27
  Could not build the ssl module while installing python3.7 from tar ball badfish 1 7,827 Dec-11-2018, 04:33 AM
Last Post: badfish
  Error when installing module tjnichols 2 5,330 May-13-2018, 04:51 PM
Last Post: tjnichols
  Ubuntu: Error installing watson-developer-cloud Python module gio123 3 4,394 Mar-15-2018, 09:39 PM
Last Post: gio123

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020