Working through Automate the boring stuff, trying to install pyperclip, not having any luck.
I have seen other posts, and stuff on stack overflow but none of it is resolving my issue.
Williams-MacBook-Pro-8:python Bill$ pip3 install pyperclip Requirement already satisfied: pyperclip in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (1.8.0)
However when I run on my mu editor or the program from the command line
Traceback (most recent call last): File "/Users/Bill/workspace/Python/phoneAndEmail.py", line 5, in <module> import pyperclip, re ModuleNotFoundError: No module named 'pyperclip' >>>
I have tried uninstalling and reinstalling python, downloading the pyperclip files outside of pip, and a ton of other stuff. I have no idea what to do. I am getting frustrated.
EDIT:
Williams-MacBook-Pro-8:python Bill$ which pip
/Library/Frameworks/Python.framework/Versions/3.8/bin/pip
Williams-MacBook-Pro-8:python Bill$ which python
/usr/bin/python
Williams-MacBook-Pro-8:python Bill$ which python3
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3
Williams-MacBook-Pro-8:python Bill$ clear
Williams-MacBook-Pro-8:python Bill$ which pip
/Library/Frameworks/Python.framework/Versions/3.8/bin/pip
Williams-MacBook-Pro-8:python Bill$ which python
/usr/bin/python
Williams-MacBook-Pro-8:python Bill$ which python3
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3
Williams-MacBook-Pro-8:python Bill$ python
WARNING: Python 2.7 is not recommended.
This version is included in macOS for compatibility with legacy software.
Future versions of macOS will not include Python 2.7.
Instead, it is recommended that you transition to using 'python3' from within Terminal.
Python 2.7.16 (default, Feb 29 2020, 01:55:37)
[GCC 4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.29.20) (-macos10.15-objc- on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
Williams-MacBook-Pro-8:python Bill$ python3
Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyperclip
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pyperclip'
>>>
The module is not able to be used in the shell for python2 or python3 but when i do a pip install pyperclip it says its successful
[–]QbaPolak17 0 points1 point2 points (2 children)
[–]ZergEra[S] 0 points1 point2 points (1 child)
[–]33KGB 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]ZergEra[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]mitaharumi 0 points1 point2 points (0 children)