TensorFlow 安装时的问题及解决办法

0. 正常的安装可以参考:https://www.tensorflow.org/versions/r0.11/get_started/os_setup.html#pip-installation



这里只记录一下安装过程中遇到的问题及解决办法。


1. Can't find setup.py

问题现象

...
IOError: [Errno 2] No such file or directory: '/tmp/pip-o6Tpui-build/setup.py'

解决办法

pip install --upgrade pip


2. InsecurePlatformWarning


问题现象:


TensorFlow 安装时的问题及解决办法_第1张图片


解决方法:


因为SSL的问题,urllib3需要pyopenssl。

最简单的方法:

pip install pyopenssl ndg-httpsclient pyasn1

Ubuntu 下还需要安装 libffi-devlibssl-dev

sudo apt-get install libffi-dev libssl-dev


3. sudo: add-apt-repository: command not found


问题现象:

sudo: add-apt-repository: command not found


解决方法:


sudo apt-get install software-properties-common python-software-properties

































你可能感兴趣的:(Linux)