错误信息
在安装库的时候提示可以更新一下pip,但是更新完后就出现了问题。
—》>pip install --upgrade pip
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'd:\\python\\scripts\\pip.exe'
Consider using the `--user` option or check the permissions.
解决办法:
因为这个错误导致 pip找不到,
1.首先执行
python -m ensurepip
2.然后执行
python -m pip install --upgrade pip