简体   繁体   中英

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.

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:

在此处输入图像描述

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

在此处输入图像描述

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

在此处输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM