Python Forum
Spyder: Module Not Found - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Spyder: Module Not Found (/thread-13028.html)



Spyder: Module Not Found - jmair - Sep-24-2018

Is there a location in Spyder that I can add another directory of Modules? from CMD line I can import a module (such as pygame) but from Spyder it's acting like the module isn't there. I believe it's just not looking at the correct Lib\site-packages path.

By default it looks like pip install is dropping the modules into "C:\ProgramData\Anaconda3\Lib\site-packages" is this the default location for Anaconda/Spyder module path?


RE: Spyder: Module Not Found - Larz60+ - Sep-24-2018

pip is doing what it is supposed to do. The packages should always be installed in the site-packages directory (by pip, not by you).
are you sure you are running the same version of python that pip is associated with?
type from command line:
python -V
pip -V
and make sure they match.


RE: Spyder: Module Not Found - jmair - Sep-25-2018

I've uninstalled Anaconda and Python from my win10 machine and deleted the folders and SysPaths. Then installed both again since the post. I 'think' everything is working correctly now.
Python 3.7.0
pip 10.0.1 from C:\ProgramData\Anaconda3\Lib\site-packages\pip

But I've seen multiple locations for python.exe and site-packages locations. Currently, i think everything I'm using is coming from the ProgramData\Anaconda3 location (python and the packages. And this is fine so long as I only use Spyder for my compiler and not the command line.