win10, RTX2060, cuda10.1, cudnn7.6.5,tensorflow_gpu=2.2.0
顯卡類型:NVIDIA GeForce RTX 2060(6G)
下載成功之後就執行安裝步驟
下載成功之後安裝
將cudnn7.6.5壓縮包中的所有文件拷貝到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1
安裝anaconda,記住一定要勾選add path選項
conda create --name tf2.2 python=3.7.0
activate tf2.2
在C:\User\xx\新建pip文件夾,然後再文件夾中新建pip.ini文件,在pip.ini文件中加入
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
在**虛擬環境的條件下(參考第6步),在控制檯敲入命令
pip install tensorflow_gpu==2.2.0
import tensorflow as tf
print(tf.version)
顯示2.2.0,安裝成功
如果出現ImportError: DLL load failed: 找不到指定的模塊,則需要到網站https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads下載
安裝上面的visual studio build tools之後,在執行第8步,重新安裝tensorflow_gpu2.2.0。 大功告成!