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


Messages In This Thread
Installing pyperclip module - by Truman - Apr-27-2018, 10:22 PM
RE: Installing pyperclip module - by snippsat - Apr-27-2018, 11:30 PM
RE: Installing pyperclip module - by Truman - Apr-28-2018, 10:19 PM
RE: Installing pyperclip module - by snippsat - Apr-28-2018, 10:51 PM
RE: Installing pyperclip module - by Truman - Apr-28-2018, 11:11 PM
RE: Installing pyperclip module - by snippsat - Apr-29-2018, 03:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  ERROR WHILE INSTALLING PLAYSOUND MODULE satwants33 2 1,621 Mar-23-2024, 12:50 PM
Last Post: Ritik2508
  Installing time module Led_Zeppelin 2 12,225 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,815 Jan-10-2021, 11:39 PM
Last Post: Evalias123
  Module not Installing Evil_Patrick 9 4,723 May-27-2020, 03:45 PM
Last Post: Evil_Patrick
  Error after installing Python3.8.2: "No module named 'apt_pkg'" Chromie 3 3,956 Mar-09-2020, 08:20 PM
Last Post: micseydel
  Please help: problem installing/importing langdetect module in Jupyter Notebook ledgreve 3 7,412 Dec-30-2019, 08:17 AM
Last Post: LeanbridgeTech
  Using Pyperclip in Python 3 Does Not Paste Data in Desired Format aspire27 0 2,363 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,871 Dec-11-2018, 04:33 AM
Last Post: badfish
  Error when installing module tjnichols 2 5,401 May-13-2018, 04:51 PM
Last Post: tjnichols
  Ubuntu: Error installing watson-developer-cloud Python module gio123 3 4,456 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