【发布时间】:2018-04-03 20:24:46
【问题描述】:
我正在尝试在 Ubuntu 16.04 和 Python 3.6 (Anaconda) 上使用 Virtualenv 安装 Tensorflow 的 GPU 版本,但它一直输出这些错误
tensorflow-gpu 1.7.0 requires numpy>=1.13.3, which is not installed.
tensorflow-gpu 1.7.0 requires six>=1.10.0, which is not installed.
tensorboard 1.7.0 requires numpy>=1.12.0, which is not installed.
tensorboard 1.7.0 requires six>=1.10.0, which is not installed.
tensorboard 1.7.0 requires werkzeug>=0.11.10, which is not installed.
protobuf 3.5.2.post1 requires six>=1.9, which is not installed.
html5lib 0.9999999 requires six, which is not installed.
grpcio 1.10.0 requires six>=1.5.2, which is not installed.
bleach 1.5.0 requires six, which is not installed.
absl-py 0.1.13 requires six, which is not installed.
我已经尝试在 virtualenv 和外部都使用sudo pip install numpy six 安装 numpy 和 6,但错误仍然存在。有关如何解决此问题的任何想法?
【问题讨论】:
-
你确定你使用的是正确的
pip吗?它可能会将它们安装在 Python 2 而不是 Python 3 上,试试pip3。 -
@quartata
pip --version输出它正在运行 Python 3.6,但它确实声明它是 virtualenv 中pip的旧版本。当我尝试运行pip install --upgrade pip时,出现与上面相同的错误。
标签: tensorflow pip ubuntu-16.04