Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spyder: Module Not Found
#1
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?
Reply
#2
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.
Reply
#3
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pyside6 module not found ForeverNoob 4 1,415 Aug-18-2023, 04:36 PM
Last Post: snippsat
  Module Not Found Error bitoded 4 1,408 Jan-01-2023, 09:08 AM
Last Post: bitoded
  How do I get pygame module to work in Spyder? (Mac) FirstBornAlbratross 18 4,389 Dec-18-2022, 06:43 PM
Last Post: FirstBornAlbratross
  pdfminer package: module isn't found Pavel_47 25 8,894 Sep-18-2022, 08:40 PM
Last Post: Larz60+
  Module not found question sighhhh12 0 1,499 Sep-09-2022, 05:43 AM
Last Post: sighhhh12
  [SOLVED] Tkinter module not found Milan 7 24,130 Aug-05-2022, 09:45 PM
Last Post: woooee
  No module found when I run a main.py tomtom 2 1,474 Jul-20-2022, 09:24 AM
Last Post: tomtom
  No Module found in other directory than source code [SOLVED] AlphaInc 1 2,059 Nov-10-2021, 04:34 PM
Last Post: AlphaInc
  KafkaUtils module not found on spark 3 pyspark aupres 2 7,385 Feb-17-2021, 09:40 AM
Last Post: Larz60+
  'urllib3' Module not found when import 'requests' spanz 5 10,249 Jan-06-2021, 05:57 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020