You must navigate to your default install location for 3.6. For IDLE 32 bits it's:
C:\Users\<username>\AppData\Local\Programs\Python\Python36-32\Scripts\
for IDLE 64 bits use:
C:\Users\<username>\AppData\Local\Programs\Python\Python36\Scripts\
If you navigate to that directory in the command prompt (use cd command), then the command
pip install pyperclip
should work.
Answer from Oscar Albert on Stack OverflowYou must navigate to your default install location for 3.6. For IDLE 32 bits it's:
C:\Users\<username>\AppData\Local\Programs\Python\Python36-32\Scripts\
for IDLE 64 bits use:
C:\Users\<username>\AppData\Local\Programs\Python\Python36\Scripts\
If you navigate to that directory in the command prompt (use cd command), then the command
pip install pyperclip
should work.
There is a problem with the current version of the pyperclip I checked the git repo and opened a pull request for the issue. It currently doesn't support use for python3.7
ModuleNotFoundError: No module named 'pyperclip'
Pyperclip how to install
python - Can't import Pyperclip - Stack Overflow
Cannot install pyperclip on windows 10 using pip version 21.2.4
Hi. I've pip installed pyperclip to my windows machine. Python has been added to PATH. I created a paste -> modify -> copy program that runs fine inside Mu. I had to install pyperclip separately into Mu to get that to work.
However when I created a .bat file to run it I get the following error:
ModuleNotFoundError: No module named 'pyperclip'
This is the first time I have tried to run .bat file that has a module not part of the standard library. Using Python 3.10, pyperclip 1.8.2, Mu 1.1.0b7 and Windows 11
Any idea where I've gone wrong?
» pip install pyperclip
Try
pip3 install pyperclip
That installs pyperclip in python3.
It unpacked pyperclip in the wrong directory. I copied the entire pyperclip folder and put it in C:/python/python35, now it works as it should. Seems like a noob mistake on my part, but it took me a long time to figure this out. I hope this helps someone in the future.
I've been trying for several hours to import pyperclip in the Canopy text editor. The command prompt indicates that I have pyperclip installed. However, the text editor gives an error: No module named 'pyperclip'. I've installed and uninstalled python several times.
Help
To start off I am a very inexperienced beginner. This subreddit has been pretty great I appreciate all the tools and support I have found throughout this subreddit, which is why I came here to search for help. On page 135 of Automate the Boring Stuff, one has to use the pyperclip module, which is referenced in Appendix A on how to install. This is where I am having a problem.
In Appendix A it states, "On Windows, you can find pip at C:\Python34\Scripts\pip.exe." I am running Windows 10 and Python 3.6. I cannot find the pip.exe. I previously found it in C:\Python27\Scripts\pip.exe. When I would click to open this, it would pop up and then close out automatically, so I assumed it had something to do with having both Python 2 and 3. However, I uninstalled Python 2.7 after realizing the redundancy of having both Python 2 and 3. I have a location (C:\Python3) however this file is empty. I thought having both Python 2 and 3 may have been the issue as to why I had a blank "Python 3" folder, so I uninstalled Python 3 and reinstalled it in hopes that I would then have all the necessary scripts. Still, no luck. When installing I just did the basic install that includes pip. Does it have something to do with having some form of antivirus or firewall on my computer?
Now, I have read that pyperclip comes preinstalled in Python 3, so this problem is not much of an issue, however I cannot import pyperclip in IDLE (ModuleNotFoundError: No module named 'pyperclip'). This must mean I need to install pyperclip with pip but I cannot access pip. Is pip accessed through Python 3.6? Or directly through Powershell or the command prompt?
I apologize if any of this sounds redundant or ignorant, I have tried my best for the past few hours to discover a solution with no avail. Again I am a beginner but I have invested in a lot of Python study materials in hopes to one day become proficient in the language. I appreciate any input that can be provided.
EDIT: Solved the problem! Thanks for the help /learnpython
TL;DR: "ImportError: No module named 'pyperclip'; Tried "easy_install" and "pip" to install the module, error persists. Code is in Python 3, /Library/Python directory only has libraries for 2.3-2.7.
So I'm working through the "Automate the Boring Stuff" intro to Python, doing the first project for Chapter 6, which is a basic (unsecure) password manager.
It makes use of the "sys" module and "pyperclip" module, so I have
import sys, pyperclip
in there, as instructed. The problem is, when I go to run the code, I get this error:
ImportError: No module named 'pyperclip'
The tutorial says that the 'pyperclip' module should already be installed, but I Googled around to see if I could figure it out myself... I tried easy_install and pip to install 'pyperclip,' and it seemed like it went okay. When I go 'pip install pyperclip' now, I get:
Requirement already satisfied (use --upgrade to upgrade): pyperclip in /Library/Python/2.7/site-packages/pyperclip-1.5.11-py2.7.egg
...but I still get the same error trying to run my code. I noticed that it seems to be referring to Python v2.7, whereas the tutorial (and my code) is based on Python 3 (3.4.3 I think).
My /Library/Python/ directory doesn't have any folders for Version 3, so it seems like that could be the root of my problem, but I couldn't find a straightforward way to install Python 3 libraries.
Any idea how I can get the module to work?
EDIT: I notice that in Terminal, if I type "python" it loads Python 2.7. From there, I can use "import pyperclip" and subsequently "pyperclip.copy("Hello world!")" without any problems. If I type "python3" in the terminal, it loads Python 3.4.3, and I still get "ImportError: No module named 'pyperclip'"
Hello, so i'm fairly new to python so i would appreciate any and all the help i can get.
I created a simple program, when i press a button, text is copied to my clipboard, to do this i imported pyperclip. the problem is when i use pyinstaller to distribute it to a windows system, instead of the program running the cmd pops up for half a second saying:
ModuleNotFoundError: no module named 'pyperclip'
[7996] Failed to execute script Main
I have tried:
#installing pyperclip
#adding python to Path
#i uninstalled pyinstaller and installed the developer version, and also added a hidden import when i run the pyinstaller
so instead of pyinstaller --onefile Main.py
i used pyinstaller --hidden-import=pyperclip onefile Main.py
i've gone through quite a few forums, and tried making sense of documentation but i'm having a really hard time, any help would be appreciated
That happens because your computer can't find the module on your pc, first of all I would recommend you to use PIP to install all your packages. And then, make sure you python folder is in the path of your pc
Have you run across this? https://stackoverflow.com/questions/34675608/no-module-named-pyperclip-after-exe-has-been-created
A bit hacky, but seems like it might work.