Spyder, clean Win installation, ver. 4.2.3 - pip gives message "No module named pip"

Viewed 4624

I have Spyder, clean Win10 installation, ver. 4.2.3.

When I run command pip, it gives message:

Note: you may need to restart the kernel to use updated packages.
C:\Users\UserName\AppData\Local\Programs\Spyder\Python\python.exe: No module named pip

I restarted Spyder, Win10, nothing helps.

How to fix it? Thanks.

2 Answers

(Spyder maintainer here) We don't provide pip in our Windows app to prevent people breaking Spyder by installing any kind of packages with it.

The best way to use other packages that don't come with our app is to install Miniconda, create a conda environment after that with the packages you want to use and spyder-kernels, and finally connect Spyder to that env.

If you have python 3.4+ then pip should be installed with python. To check that, you can run

pip help

in your windows command line.

However, if it isn't the case then download the get-pip.py file and run

python get-pip.py

and the pip installation should start. You can use pip help to verify this. Another source of the problem might be that pip isn't listed in your PATH variables and thus isn't recognized by your command line.

Related