python -m pip install --upgrade pip遇到问题,不能安装:错误类型:PermissionError:[WinError5]

python -m pip install --upgrade pip

会报错

PermissionError:[WinError5]¥▄¥°À├╬╩íú:'c:\\programdata\\anaconda3\\lib\\site_packages\\numpy\\add_newdocs.py'You are using pip version 9.0.1, however version 10.0.1 is available.You should consider upgrading via the 'python -m pip install --upgrade pip' command.

但是执行python -m pip install --upgrade pip同样会报错

解决办法

pip install --user --upgrade pip

就成功了

我也不知道为什么??

python版本3.x

你可能感兴趣的:(python3.6.4,python,更新,pip)