整理如下:

1、官网:

https://www.tensorflow.org/install/install_linux

Ubuntu14.04上安装TensorFlow

Ubuntu14.04上安装TensorFlow

2、安装pip

Ubuntu14.04上安装TensorFlow

【问题:现在没有可用的软件包python-pip,但是它被其它的软件包引用了,软件包python-dev没有可供安装的候选者】

【解决:原博文链接

在Ubuntu14.04上,建议通过下面的方法安装,这是一种通用的方法,也适用于Windows,当然在Windows下

手动下载下来就行了

wget https://bootstrap.pypa.io/get-pip.py  --no-check-certificate
sudo python get-pip.py

 

如果在Ubuntu14.04上你用sudo apt-get install python-pip下载安装,在使用时有可能出现问题

这是因为通过apt-get安装的pip版本太老了,老的pip版本依赖requests.compat.IncompleteRead,而在2.4.0版本的requests中已经移除了

requests.compat.IncompleteRead,解决方法是先卸载pip(命令为sudo apt-get remove python-pip),然后再用上面的方法重新安装。

Ubuntu14.04上安装TensorFlow


3、安装TensorFlow

【问题:出现Exception:Trackback(most recent call last):File'.................'】

【解决:sudo安装即可】

Ubuntu14.04上安装TensorFlow

Ubuntu14.04上安装TensorFlow


4、Validate your installation

Ubuntu14.04上安装TensorFlow

Over~ To be continued~


【番外:由于Ubuntu15不稳定、于是又重新装了Ubuntu16,安装验证结果一样】

Ubuntu14.04上安装TensorFlow

Ubuntu14.04上安装TensorFlow

给Python3安装TensorFlow

Ubuntu14.04上安装TensorFlow

Ubuntu14.04上安装TensorFlow



今天安装jupyter notebook,无意间看到这篇“Ubuntu 16.04下TensorFlow及Jupyter Notebook

安装配置详解”,TensorFlow的部分,看似差不多。先Mark在这里。



相关文章:

  • 2021-07-24
  • 2022-12-23
  • 2021-09-15
  • 2021-09-17
  • 2022-12-23
  • 2021-08-27
  • 2021-05-03
  • 2022-03-04
猜你喜欢
  • 2021-11-22
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
  • 2021-05-12
  • 2022-12-23
相关资源
相似解决方案