在 windows 中更新 pip

update pip in windows

环境: Python 3.5.2 Anaconda 4.2.0 (64-bit) Windows 8.1

我尝试在 cmd 中使用 easy_intall -U pip 更新 pip。

错误:

The following error occurred while trying to add or remove files in the installation directory:

[Errno 13] Permission denied: 'C:\Program Files\Anaconda3\Lib\site-packages\test-easy-install-4760.write-test'The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: C:\Program Files\Anaconda3\Lib\site-packages\

我不确定,但是在 Windows 7 及更高版本上,程序文件需要管理员权限。

我在 c:\anaconda 上安装了 Anaconda,所以我没有这样的问题。你可以试试。

但在此之前,尝试运行管理员权限的控制台。在开始菜单中键入 cmd,然后 windows 将显示 Command Prompt application.Right 单击并以管理员身份激活它。然后尝试更新pip。

尝试右键单击命令提示符图标并 select 运行 以管理员身份。在类似的情况下为我工作。