实验室的服务器上已经安装好了cuda和cudnn,这个操作我并不清楚,这里就忽略不说了。
下载anaconda
wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh #64位系统
然后
bash Anaconda3-5.1.0-Linux-x86_64.sh
之后按照提示输入enter或者yes
直到出现 open a new terminal 。打开新的中断,进入服务器,输入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
然后安装GPU版本的tensorflow
conda install tensorflow-gpu
不要用pip install,会很慢很慢
查看当前Python的安装路径
which python