Windows 下update pip 报错:Cannot remove entries from nonexistent file c:\intelpython3\lib\site-packages\easy-install.pth,解决办法

1,背景:

在已有Python3的windows系统上安装jupyter notebook。

根据官方指导命令如下

If you have Python 3 installed (which is recommended):

python3 -m pip install --upgrade pip
python3 -m pip install jupyter
#after finished
#run:
jupyter notebook

2,当执行#python3 -m pip install --upgrade pip 时 报error:

Cannot remove entries from nonexistent file c:\intelpython3\lib\site-packages\easy-install.pth


3,网上前辈意见:

#remove掉setuptools
canda.exe remove setuptools

#The following packages will be REMOVED:
#bleach
#ipywidgets
#jinja
#notebook
#pip
#setuptools
#wheel
#...

4,Remove 掉之后重新install pip.

下载get-pip.py 放入c:\python3\Scripts\

https://bootstrap.pypa.io/get-pip.py

#excute
python3 get-pip.py
python3 -m pip install --upgrade pip

5,Reinstall jupyter notebook

python3 -m pip install --upgrade pip
python3 -m pip install jupyter

完成后可正常调用

 

posted @ 2018-12-03 10:56  leo_队长  阅读(2014)  评论(0编辑  收藏  举报