Anaconda 安装tensorflow(GPU)


1、安装

如果是安装CPU模式的tensorflow,只要输入一下代码就可以了

pip3 install tensorflow          #python3
pip install tensorflow #python2

 下面是gpu模式的安装过程

create a conda environment called tensorflow:

# Python 2.7
$ conda create -n tensorflow python=2.7

# Python 3.4
$ conda create -n tensorflow python=3.4

# Python 3.5
$ conda create -n tensorflow python=3.5

 激活这个tensorflow环境

source activate tensorflow

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM