tensorflow1.15.0(1.x最新版本)and tensorflow1.15.0-gpu下载与安装详细过程

一、创建虚拟环境

见博客:
python创建虚拟环境(一):使用conda创建虚拟环境
python创建虚拟环境(二):使用终端命令创建虚拟环境
python创建虚拟环境(三):用pycharm创建虚拟环境and使用

二、下载tensorflow1.15.0

按照一中方法我创建了一个tensorflow1.0的虚拟环境:
在这里插入图片描述
使用如下命令下载tensorflow1.15.0:

conda install -n tensorflow1.0 tensorflow==1.15.0

在这里插入图片描述
下载过程中遇到选择时输入y

使用如下命令下载tensorflow1.15.0-gpu:

conda install -n tensorflow1.0 tensorflow-gpu==1.15.0

下载完成后使用命令:

conda list

在这里插入图片描述

可以发现tensorflow1.15.0和tensorflow1.15.0-gpu下载完成。

三、使用tensorflow1.15.0-GPU

新建一个tensorflow1.0环境的python文件
在这里插入图片描述
就可以使用安装有tensorflow1.15.0的虚拟环境啦

猜你喜欢

转载自blog.csdn.net/qq_45154565/article/details/109637484
今日推荐