pip升级失败怎么办
$ pip install --upgrade pip
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pip
Downloading
https://pypi.tuna.tsinghua.edu.cn/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl (1.4MB)
Installing collected packages: pip
Found existing installation: pip 19.0.3
Uninstalling pip-19.0.3:
Could not install packages due to an EnvironmentError: [WinError
5] 拒绝访问。: ‘d:\python36\scripts\pip.exe’
Consider using the --user option or check the permissions.
$ python -m ensurepip
Requirement already satisfied: setuptools in d:\python36\lib\site-packag
es
Collecting pip
Installing collected packages: pip
Successfully installed pip-9.0.1
$ python -m pip install --upgrade pip