Ubuntu16.04+python3.5+AMD安装tensorflow
2018-03-04 21:14
429 查看
参考: 在 Ubuntu 上安装 TensorFlow (官方文档的翻译)
$ sudo pip install --upgrade tfBinaryURL # Python 2.7 $ sudo pip3 install --upgrade tfBinaryURL # Python 3.n
比如:
sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.6.0-cp35-cp35m-linux_x86_64.whl[/code]
其中 tfBinaryURL 标识了 TensorFlow Python 包的 URL。tfBinaryURL 的适当值取决于操作系统、Python 版本和 GPU 。在 这里 找到合适的 tfBinaryURL 值。例如, 要安装 Linux、Python 3.4 和仅支持 CPU 的 TensorFlow。
安装结束后,进行验证:import tensorflow as tf hello = tf.constant('Hello, TensorFlow!') sess = tf.Session() print(sess.run(hello))
比如:➜ ~ python3 Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import tensorflow as tf /usr/local/lib/python3.5/dist-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`. from ._conv import register_converters as _register_converters >>> hello = tf.constant('Hello, TensorFlow!') >>> sess = tf.Session() 2018-03-04 21:09:07.730694: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA >>> print(sess.run(hello)) b'Hello, TensorFlow!'
相关文章推荐
- ubuntu16.04:cuda8.0+python3.5+tensorflow1.4+opencv3.2安装说明
- TensorFlow CPU版 安装环境 Ubuntu16.04 Python3.5
- Ubuntu16.04 python3.5下安装pip3与TensorFlow1.0.0
- Tensorflow安装(Ubuntu Python3.5)
- ubuntu16.04 python3.5下安装tensorflow(cpu only)
- ubuntu16.04+cuda8.0+python3.5_pip安装pytorch
- 在Ubuntu 16.04 中安装配置 Opencv 3.1 和 Python 2.7 / Python 3.5
- ubuntu16.04集成 cuda8.0-tensorflow1.2.1-python2.7免安装一体包
- Ubuntu16.04 安装dlib库(Python3.5)
- ubuntu16.04 python3安装opencv及tensorflow
- Ubuntu16 安装 tensorflow-gpu + keras (python3.5)
- ubuntu16.04安装kivy(python3.5)
- Ubuntu16.04下安装Anaconda3过程python3.6使用,以及重新建立新的Python2.7并安装tensorflow-gpu,测试并成功。
- [bigdata-34] pyenv + anaconda 4.2 + python3.5+ ubuntu 16.04 安装
- [bigdata-34] pyenv + anaconda 4.2 + python3.5+ ubuntu 16.04 安装
- Caffe深度学习入门——Ubuntu16.04 + CUDA9.1+cudnn7.5 + opencv3.3.1+python3.5+caffe安装参考博客和跳坑笔记
- Ubuntu16.04+python3.5+opencv3.3.1+opencv_contrib编译安装
- ubuntu 16.04 安装 opencv3.2.0 with python 3.5
- Ubuntu16.04+CUDA9+cudnn7+python3.5+源码编译Tensorflow1.4+opencv3.3
- Ubuntu16.04 python3.5安装 / 卸载opencv