Terminal Claims No Pyperclip Module Found But That I've Already Installed Pyperclip?
So I'm new to learning Python and am trying to execute some Python code from Automate the Boring Stuff (specifically the Password Locker Project). In the book, it tells us to run t
Solution 1:
It sounds very much like you have more than one Python installation. You installed pyperclip with python3.8
specifically, but by executing your script using ./pw.py
, you could be running it with some other installation currently set as your default. Try python3.8 pw.py
and see if that works.
Edit: Glad that worked! If you'd like to investigate what version your system is using by default, try entering python --version
on the command line. And as M Z mentioned below in a comment, sys.version_info
(or also just sys.version
) can access the current Python version from inside a script.
Post a Comment for "Terminal Claims No Pyperclip Module Found But That I've Already Installed Pyperclip?"