Windows 下update pip 报错:Cannot remove entries from nonexistent file c:\intelpython3\lib\site-packa
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
完成后可正常调用