Tensorflow2.0 + Anaconda + Windows10 + cuda10.0 + python (Transfer Agent pea)

Tensorflow2.0+Anaconda + Windows10+cuda10.0+python

Published: 2019-04-19 20:10:27

Tensorflow2.0 with them than tensorflow1.x be easy to use a lot.

1.x installation process with almost all the same.

1, download and install Anaconda

https://www.anaconda.com/distribution/#download-section

Confirm Anaconda has been installed

2, installation cuda10.0

This machine is the graphics card GTX 1080ti

cuda Download:

https://developer.nvidia.com/cuda-10.0-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal

cuda installation process to be checked carefully, do not mistake crude

 

The red box portion unequal does not matter, but must ensure Current Version <= New Version

Then confirm cuda install:

CUPTI confirmation:

3, download and install cudnn

Download this will need to register an account first (trouble)

https://developer.nvidia.com/rdp/cudnn-download

Unzip the folder name to cudnn, copied to the chart position

cudnn Installation Qualification:

Changing the system environment variables:

Figure 4 under this line are indispensable and must be at the top!

cuda test:

4, installation tensorflow2.0

Open the Start menu bar Anaconda Prompt:

Creation environment: conda create -n tf2.0 python = 3.7

Activate the environment:

activate tf2.0

Installation cpu version:

pip install --upgrade tensorflow==2.2.0-alpha0

Installation gpu version:

pip install --upgrade tensorflow-gpu==2.2.0-alpha0

pip链接国外的源比较慢,可换用清华镜像:

如::pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==2.2.0-alpha0

tensorflow测试

打开Anaconda Prompt->进入刚才建好的环境->输入python

测试下图代码

5、安装spyder

tf2.0 环境下 输入 conda install spyder

结束

相关文章

Guess you like

Origin www.cnblogs.com/GoldCrop/p/11351141.html