如何升级点子?

时间:2019-03-12 04:54:12

标签: python windows tensorflow pip

我想安装tensorflow,但是我需要升级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

Here is a picture of what I put into the command line

3 个答案:

答案 0 :(得分:0)

对于安装Python依赖项时出现的权限错误,您需要以administrator的身份运行终端或命令提示符或Powershell

以下示例:

enter image description here

答案 1 :(得分:0)

您不需要升级pip即可安装tensorflow。尽管如果您仍然希望这样做,可以尝试

pip install --user --upgrade pip

否则,请尝试以管理员身份运行CMD

答案 2 :(得分:-2)

m pip install --upgrade pip 

在终端上写下这个子句并按回车键 m pip install --upgrade pip