我试图在 ubuntu 14.04,python 2.7 上从源代码安装 tensorflow。
我按照“tensorflow.org”中的步骤进行源代码安装。
我已经完成了所有步骤,例如 bazel 安装,python 依赖项安装。
在 sudo pip 安装的最后一步;命令如下:-
$sudo pip install /tmp/tensorflow_pkg/tensorflow-1.3.0rc0-cp27-none-linux_x86_64.whl
但我收到如下错误:
Unpacking /tmp/tensorflow_pkg/tensorflow-1.3.0rc0-cp27-none-linux_x86_64.whl
Downloading/unpacking tensorflow-tensorboard (from tensorflow==1.3.0rc0)
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement tensorflow-tensorboard (from tensorflow==1.3.0rc0)
Cleaning up...
No distributions at all found for tensorflow-tensorboard (from tensorflow==1.3.0rc0)
Storing debug log for failure in /home/ubuntu/.pip/pip.log
我还检查了 tensorflow_pkg 轮:但上面的包在那里不可用。
所以可以使用 pip 安装不同的 .whl,例如 -tensorflow-1.2.1-cp27-none-linux_x86_64.whl
已下载到我的 table 面。
请告诉我如何解决这个问题。
谢谢并恭祝安康
最佳答案
我没有弄清楚问题的根源,但是为了它的值(value),我通过安装旧版本跳过了张量板问题(1.2.0 对我有用)
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.2.0-cp27-none-linux_x86_64.whl
关于python-2.7 - tensorflow的pip安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45293759/