ubuntu下安装tensorflow-gpu

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yexudengzhidao/article/details/84993654

首先说明:实验室的服务器已经配置好了NVIDIA的环境,所以我只在自己的账户下做了如下配置:

1. 首先下载anacon3

wget + 下载链接URL + 想要的版本号
例如:wget + https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ + Anaconda3-5.2.0-Linux-x86_64.sh

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.2.0-Linux-x86_64.sh

2. 更新一下环境变量(在自己的账户下)

source ~/.bashrc

3. 安装tensorflow-gpu

pip install tensorflow-gpu

说明:在python2.7下为pip,在python3.x版本下为pip3。
若在anaconda下统一使用pip即可。

猜你喜欢

转载自blog.csdn.net/yexudengzhidao/article/details/84993654