pip install 出现Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问

pip install -U numpy进行更新的时候出现了上述的问题,

pip install 出现Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问

百度了一下直接在install后面加上--user--就可以了

pip install --user-- upgrade numpy

pip install 出现Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问