您的位置:首页 > 运维架构 > Linux

170620 How to install tensorflow with GPU on linux

2017-06-20 14:49 477 查看
Where to download Anaconda(Linux Version)

How to install Anaconda on linux

No module named tensorflow issue-stackover

Where to download tensorflow-gpu.whl



# step1: create a tensorflow-gpu environment
conda create -n tesorflow-gpu python=3.6

# step2: activate the  tensorflow-gpu environment
source activate tensorflow-gpu

# step3: install the .whl (if you have a loccal .whl file)
pip install --ignore-installed --upgrade + .whl path
# or (if you want to download the .whl file)
pip install tensorflow-gpu
# tensorflow can be imported in cmd window but can't be imported in Spyder.
# So we need to take the following step.

# step4: change to the desktop and install tensorflow with command line
pip insatll tensorflow     # install tensorflow (cpu-version)
pip install tensorflow-gpu # install tensorflow (gpu-version)


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: