Davide Trono
Davide Trono

Reputation: 119

no module pip found Spyder

I'm desperate, I have installed Spyder on Windows 10, but pip won't work. Anytime I run

pip install package

I get no module pip found. If I try with conda then I get:

The python kernel does not appear to be a conda environment. Please use %pip install instead.

To which I try

%pip install

Thus still obtaining no module pip found. Honestly I have no idea how to proceed. I have anaconda installed as well, which actually tells me pip is indeed installed, but nontheless I can't use it.

Yes, pip is upgraded to the last version.

Upvotes: 2

Views: 16796

Answers (1)

Tyler Gallenbeck
Tyler Gallenbeck

Reputation: 588

Yeah it seems like your python path is not correct. You can't find pip because it's not installed there (it may be in your path, but if not, you will need to add the python \Scripts to your path. Generally, you should keep python in the standard path that it installs to. Below are some simple instructions to add python to your path in windows. Follow this tutorial to add your \Scripts path as well (although it's pretty much the same process).

To add the path to the python.exe file to the Path variable, start the Run box and enter sysdm.cpl:

enter image description here

This should open up the System Properties window. Go to the Advanced tab and click the Environment Variables button:

enter image description here

In the System variable window, find the Path variable and click Edit:

enter image description here

Position your cursor at the end of the Variable value line and add the path to the python.exe file, preceded with the semicolon character (;). So in the example below, if your python path is at the root of C:\ you would add the following value:

;C:\Python3

Upvotes: 2

Related Questions