#๐Ÿ”’ ModuleNotFoundError: No module named 'pyperclip'. But I have installed pyperclip!

9 messages ยท Page 1 of 1 (latest)

split dome
#

Hello everyone.
Here is the problem:
I have install pyperclip through cmd
python3.10 install pyperclip
Everything ran just fine. The installation is completed.
I go to Mu1.2.0 and write these code
import pyperclip
pyperclip.copy('Hello, world!')
pyperclip.paste()
Run the code, and the error appears:
Traceback (most recent call last):
File "c:\users\admin\mu_code\appendixa.py", line 1, in <module>
import pyperclip
ModuleNotFoundError: No module named 'pyperclip'
>>>


My python is 3.10
I tried to reinstall again and the message appears:
Requirement already satisfied: pyperclip in d:\program files\python310\lib\site-packages (1.8.2)

brazen harnessBOT
#

@split dome

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

shadow charm
#

Try with pip or pip3

midnight bloom
#

you may have python3.10 installed in multiple locations, for example in a virtual environment

#

you can test it by doing ```py
import sys

print(sys.executable)```

shadow charm
#

Got it... i had the same problem with other module it was solved by using python3.10 -m pip install modulename

brazen harnessBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.