解决 ERROR Could not install packages due to an EnvironmentError 拒绝访问

保留现场

升级pip时出现报错:

解决方法

加上--user

python -m pip install --upgrade pip  --user