ubuntu16.04系統下,利用anaconda安裝tensorflow-gpu

一、下載anaconda:

https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/

本人下載的是:

anaconda3:python版本是3系列,4.2.0默認的python是3.5;

二、安裝anaconda

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
  • 查看是否將anaconda路徑加入到環境變量中:

vim ~/.bashrc
source ~/.bashrc 
  • 解決無法創建虛環境問題:

       打開 ~/.condarc    文件,並刪除 - defaults 一行:

sudo gedit ~/.condarc

 詳情參考:https://blog.csdn.net/weixin_39555761/article/details/80918320

三、安裝tensorflow

conda install tensorflow-gpu=1.9 cudatoolkit=9.0 cudnn=7.1

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章