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