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

完成后可正常调用

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM