D:Python37>python -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/96/2f/caec18213f6a67852f6997fb0673ae08d2e93d1b81573edb93ba4ef06970/pip-22.1.2-py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'd:\python37\lib\site-packages\pip-10.0.1.dist-info\entry_points.txt'
Consider using the `--user` option or check the permissions.
“You are using pip version 10.0.1, however version 22.1.2 is
available.
You should consider upgrading via the ‘python -m pip
install --upgrade pip’ command.”
这时更新一下pip:
python -m pip install --upgrade pip --user
D:Python37>pip install numpy


![D盘下载numpy库出现Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘d:\python37 D盘下载numpy库出现Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘d:\python37](http://www.mshxw.com/aiimages/31/983972.png)
