pip 在 windows 后没有升级
pip doesn't upgrade in windows
尽管有一些类似的问题,但 none 提议的解决方案适用于我的案例。简单地说,在 tensorflow
安装后尝试安装包此消息
"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
即使是管理员级别也不起作用,这个也不行:python -m pip install -U pip
.
(我正在使用 Miniconda,仅作为附加信息)
@Hamidreza,使用这个命令pip install --upgrade pip
如果它不起作用,请尝试将其作为备用 easy_install pip
希望有用
我觉得安装前很多pip命令TensorFlow
都可以正常使用,只是安装后出现问题,可能是因为Python新版本兼容TensorFlow的可能少了点,所以更新pip和conda命令,可以修复。通过命令 conda install pip
我已经很长时间没有在 Conda 环境中工作了,但我认为它是:
conda update pip
我在 windows 中安装 tensorflow 后遇到了类似的问题。
pip install 对我不起作用。 pip install 返回相同的错误。
经过一些检查,我发现问题出在 html5lib 和 setuptools 上。我在这里回答了同样的问题
基本上,我使用
重新安装了 html5lib
conda install -c anaconda html5lib
已被更高优先级的频道取代
几番哀嚎切齿,我找到了答案here。
要使用 conda 安装此包 运行 以下之一:
conda install -c conda-forge pip
示例输出:
The following packages will be UPDATED:
ca-certificates: 2018.03.07-0 --> 2018.4.16-0 conda-forge
certifi: 2018.4.16-py36_0 --> 2018.4.16-py36_0 conda-forge
conda: 4.5.9-py36_0 --> 4.5.9-py36_0 conda-forge
openssl: 1.0.2o-hfa6e2cd_1 --> 1.0.2o-hfa6e2cd_1 conda-forge
pip: 10.0.1-py36_0 --> 18.0-py36_1 conda-forge
Proceed ([y]/n)? y
Downloading and Extracting Packages ca-certificates-2018 | 176 KB |
############################################################################## | 100% openssl-1.0.2o | 5.4 MB |
############################################################################## | 100% conda-4.5.9 | 654 KB |
############################################################################## | 100% certifi-2018.4.16 | 143 KB |
############################################################################## | 100% pip-18.0 | 1.8 MB |
############################################################################## | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done
(base) C:\Users\User-pc>pip --version pip 18.0 from C:\dev\Anaconda3\lib\site-packages\pip (python 3.6)
尽管有一些类似的问题,但 none 提议的解决方案适用于我的案例。简单地说,在 tensorflow
安装后尝试安装包此消息
"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
即使是管理员级别也不起作用,这个也不行:python -m pip install -U pip
.
(我正在使用 Miniconda,仅作为附加信息)
@Hamidreza,使用这个命令pip install --upgrade pip
如果它不起作用,请尝试将其作为备用 easy_install pip
希望有用
我觉得安装前很多pip命令TensorFlow
都可以正常使用,只是安装后出现问题,可能是因为Python新版本兼容TensorFlow的可能少了点,所以更新pip和conda命令,可以修复。通过命令 conda install pip
我已经很长时间没有在 Conda 环境中工作了,但我认为它是:
conda update pip
我在 windows 中安装 tensorflow 后遇到了类似的问题。 pip install 对我不起作用。 pip install 返回相同的错误。
经过一些检查,我发现问题出在 html5lib 和 setuptools 上。我在这里回答了同样的问题
基本上,我使用
重新安装了 html5libconda install -c anaconda html5lib
已被更高优先级的频道取代
几番哀嚎切齿,我找到了答案here。
要使用 conda 安装此包 运行 以下之一:
conda install -c conda-forge pip
示例输出:
The following packages will be UPDATED:
ca-certificates: 2018.03.07-0 --> 2018.4.16-0 conda-forge
certifi: 2018.4.16-py36_0 --> 2018.4.16-py36_0 conda-forge
conda: 4.5.9-py36_0 --> 4.5.9-py36_0 conda-forge
openssl: 1.0.2o-hfa6e2cd_1 --> 1.0.2o-hfa6e2cd_1 conda-forge
pip: 10.0.1-py36_0 --> 18.0-py36_1 conda-forge
Proceed ([y]/n)? y
Downloading and Extracting Packages ca-certificates-2018 | 176 KB |
############################################################################## | 100% openssl-1.0.2o | 5.4 MB |
############################################################################## | 100% conda-4.5.9 | 654 KB |
############################################################################## | 100% certifi-2018.4.16 | 143 KB |
############################################################################## | 100% pip-18.0 | 1.8 MB |
############################################################################## | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done
(base) C:\Users\User-pc>pip --version pip 18.0 from C:\dev\Anaconda3\lib\site-packages\pip (python 3.6)