Mar-28-2020, 01:16 AM
Hi, everyone. I hope some of you can help me.
I'm running Python 3.8.2 on a Mac. I installed numpy, scipy, and matplotlib using pip.
From the command line (in Terminal), if I type % Python3 then >>> import matplotlib, it works. (same for scipy and numpy)
But in IDLE, I get this error:
ModuleNotFoundError: No module named 'matplotlib'
(same for scipy and numpy)
Obviously, IDLE doesn't know where to look. I've looked at many articles about .profile, and PATH, but I don't know what to do.
Currently, in my /Users/david folder is .profile which contains only 1 line (which I created because there wasn't a .profile there):
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
Is this what should be there?
One article I read said to type this in Python:
>>> import sys
>>> sys.path
The output of that was:
['', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python38.zip', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages']
Are one of these the paths I need in .profile?
I realize that this is probably a basic question, but obviously I'm lost.
I'll appreciate any help you can offer. Thanks!
David