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

来源:互联网 发布:plc与单片机应用场合 编辑:程序博客网 时间:2024/04/30 05:46

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


问题现象:




解决方法:


因为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

































0 0
原创粉丝点击