使用以下命令安装tensorflow时出现以下错误:
sudo pip3 install --upgrade $TF_BINARY_URL
我也试过没有--upgrade
但无济于事:
sudo pip3 install $TF_BINARY_URL
从tensorflow安装说明中获取的环境变量/ OS / Python / CUDA Toolkit / CuDNN:
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
错误消息是:
Double requirement given: tensorflow==0.9.0rc0 from https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl (already in tensorflow, name='tensorflow')
以下是~/.pip/pip.log
:
/usr/bin/pip3 run on Wed Jun 15 23:13:09 2016
Downloading/unpacking https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
Downloading from URL https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
Cleaning up...
Removing temporary dir /tmp/pip_build_root...
Double requirement given: tensorflow==0.9.0rc0 from https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl (already in tensorflow, name='tensorflow')
Exception information:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1263, in prepare_files
self.add_requirement(req_to_install)
File "/usr/lib/python3/dist-packages/pip/req.py", line 989, in add_requirement
% (install_req, self.get_requirement(name), name))
pip.exceptions.InstallationError: Double requirement given: tensorflow==0.9.0rc0 from https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl (already in tensorflow, name='tensorflow')
我已经Google搜索并检查了其他SO问题,但是没有发现任何相关信息。我很乐意提供调试它所需的任何其他环境信息。