如何升级pip?

15 浏览
0 Comments

如何升级pip?

我想要安装tensorflow,但需要升级pip。如何升级pip?我尝试通过命令行进行升级,但获得了以下结果。

C:\Users\garoo>python -m pip install --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/pip-19.0.3-py2.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] Access is denied: 'c:\\program files (x86)\\python36-32\\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 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\garoo>python -m pip install --upgrade pip

admin 更改状态以发布 2023年5月24日
0
0 Comments

你不需要升级pip来安装tensorflow。不过如果你仍然想要这样做,可以尝试以下操作

pip install --user --upgrade pip

否则,尝试使用管理员身份运行CMD。

0
0 Comments

通过命令行升级pip:

python -m pip install --upgrade pip

0