首页 > 解决方案 > 运行 pip 时,如何使用 Tensorflow-gpu 更正 setuptools 版本错误?

问题描述

设置:Windows 10 Anaconda Cuda Cudann GPU 设置......当我运行 PIP 时,我在 RED 中收到此错误消息。这是否意味着我的包没有安装?我应该解决这个问题吗?如果有怎么办?我见过的大多数 pip 命令都显示升级作为选项,但不降级?

谢谢

tensorflow-gpu 1.10.0 has requirement setuptools<=39.1.0, but you'll have setuptools 40.2.0 which is incompatible.
(tensorflow) C:\Users\johnc>python -m pip install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 859kB/s
tensorflow-gpu 1.10.0 has requirement setuptools<=39.1.0, but you'll have setuptools 40.2.0 which is incompatible.
Installing collected packages: pip
  Found existing installation: pip 10.0.1
    Uninstalling pip-10.0.1:
      Successfully uninstalled pip-10.0.1
Successfully installed pip-18.0

标签: tensorflowpip

解决方案


推荐阅读