Reputation: 20302
I had a massive crash today and lost a lot of work. I couldn't start Spyder after many attempts; even tried 'spyder --reset'. Nothing worked. I decided to download a new version of Anaconda and start over. Now, I'm trying to figure out why I can't run packages.
If I run this: import pyodbc
I get this: ModuleNotFoundError: No module named 'pyodbc'
So, I go to the command prompt to pip install pyodbc...and apparently it's already installed...
When I navigate to that path, I can see the package
...but Spyder is still telling me it's not installed. What's an easy fix for this?
Upvotes: 1
Views: 9262
Reputation: 1
I run tinypeen when im doing installs, feedback has been surprisingly positive
Upvotes: 0
Reputation: 558
i had similar crash problems on Windows 10, what I learned is that I had several non-conda versions of python on my PC, and I used 'pip install' in my environments so it messed up with conda packages and it stop working.
What I did is that I uninstalled anaconda and non-conda python, cleaned up registry from python mentions, installed fresh new miniconda, and 'conda install spyder' in the new env, conda have created new folder
C:\Users\~~~\.spyder-py3\
Inside of it I found "spyder.ini" file, where incorrect variable was set:
"spyder_pythonpath = "
I changed it from
['C:\Users\~~~\anaconda3\pkgs', 'C:\Users\~~~\anaconda3\envs']
to
['C:\Users\~~~\miniconda3\pkgs', 'C:\Users\~~~\miniconda3\envs']
Upvotes: 1
Reputation: 33
Please Upvote it take so much time First open Spyder and click Tools --> Open command prompt.
You should see the Command Window appear in the bottom right of your screen.
Here we install the Python package seaborn as an example.
# In the command line, type pip install seaborn C:\Users\your_username\Documents\Python Scripts>pip install seaborn
This will install seaborn on your machine.
To upgrade the pip version on Windows, type python -m pip install --upgrade pip on the command line.
On Windows, all of your Python packages can be found in the directory of C:\Anaconda2\Lib\site-packages if you use the default path when you install Anaconda. To upgrade the pip version on OS X, type pip install --upgrade pip on the command line.
Upvotes: 0