tensorflow安装新

来源:互联网 发布:淘宝收藏量什么意思 编辑:程序博客网 时间:2024/06/06 18:04

使用native pip安装tensorflow1.2的GPU版本:

(1)卸载原有的tensorflow

$ sudo pip uninstall tensorflow  # for Python 2.7$ sudo pip3 uninstall tensorflow # for Python 3.n
(2)安装python和pip3

$ sudo apt-get install python-pip python-dev   # for Python 2.7$ sudo apt-get install python3-pip python3-dev # for Python 3.n(3)安装tensorflow1.2GPU版本
 $ sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.2.0-cp34-cp34m-linux_x86_64.whl
(4)tensorflow1.3版本需要cudnn6.0的支持,所以在安装1.3版本时先安装cudnn6.0,对于cudnn5.0安装1.2版本,下面有1.3版本的tensorflow源,由于1.3有130M比1.2
的87M大很多.说明添加了很多新特性.

相关的url,在tensorflow的官方文档最后有:

The URL of the TensorFlow Python package

A few installation mechanisms require the URL of the TensorFlow Python package.The value you specify depends on three factors:

  • operating system
  • Python version
  • CPU only vs. GPU support

This section documents the relevant values for Linux installations.

Python 2.7

CPU only:

https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.3.0-cp27-none-linux_x86_64.whl

GPU support:

https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.3.0-cp27-none-linux_x86_64.whl

Note that GPU support requires the NVIDIA hardware and software described inNVIDIA requirements to run TensorFlow with GPU support.

Python 3.4

CPU only:

https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.3.0-cp34-cp34m-linux_x86_64.whl

GPU support:

https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.3.0-cp34-cp34m-linux_x86_64.whl

Note that GPU support requires the NVIDIA hardware and software described inNVIDIA requirements to run TensorFlow with GPU support.

Python 3.5

CPU only:

https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.3.0-cp35-cp35m-linux_x86_64.whl

GPU support:

https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.3.0-cp35-cp35m-linux_x86_64.whl

Note that GPU support requires the NVIDIA hardware and software described inNVIDIA requirements to run TensorFlow with GPU support.

Python 3.6

CPU only:

https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.3.0-cp36-cp36m-linux_x86_64.whl

GPU support:

https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.3.0-cp36-cp36m-linux_x86_64.whl

Note that GPU support requires the NVIDIA hardware and software described inNVIDIA requirements to run TensorFlow with GPU support.


原创粉丝点击