我试图在Ubuntu 16.04和Python3.6 (Anaconda)上使用Virtualenv安装GPU版本的Tensorflow,但它一直在输出这些错误
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.我尝试过使用sudo pip install numpy six安装numpy和6,这两种方法都是在虚拟环境中安装的,但错误仍然存在。有什么办法解决这个问题吗?
发布于 2018-04-03 23:12:25
您同时使用conda和virtualenv,这通常是个坏主意。如果您从anaconda安装Python,请使用它们的环境工具。
conda create -n tensorflow pip python=3.6
source activate tensorflow
pip install --ignore-installed --upgrade\
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.6.0-cp36-cp36m-linux_x86_64.whl另外,看看如何使用用anaconda安装tensorflow。
https://stackoverflow.com/questions/49638576
复制相似问题