安裝tensorflow-gpu遇到的問題及總結

anacond最新版 python3.7 
cuda 9.0
cudnn 7.0
vs2019 只勾選桌面開發

參考網站:
https://www.jianshu.com/p/67619111f7a2
https://blog.csdn.net/dy_guox/article/details/79081499
①https://blog.csdn.net/j879159541/article/details/93199150 
②https://blog.csdn.net/weixin_38109583/article/details/93376954
③https://blog.csdn.net/Audrey_Hepburn_1/article/details/101642694
④https://blog.csdn.net/qq_44774398/article/details/99832436
我參考的視頻網站
⑤https://www.bilibili.com/video/av62161513
⑥https://blog.csdn.net/inkflow/article/details/79943232
--------------------------------------------------------------------------------------------------------
1.
快速安裝tensorflow-GPU 國內鏡像

python -m pip install tensorflow-gpu==1.15.0  -i https://pypi.tuna.tsinghua.edu.cn/simple/   成功
python -m pip install tensorflow-gpu===2.0  -i https://pypi.tuna.tsinghua.edu.cn/simple/    成功

tensorflow低於1.13 不成功


2.卸載
 pip uninstall tensorflow-gpu
------------------------------------------------------------------------------------------------
國內最快的鏡像

阿里雲 
http://mirrors.aliyun.com/pypi/simple/
 
中國科技大學 
https://pypi.mirrors.ustc.edu.cn/simple/
 
豆瓣(douban) 
http://pypi.douban.com/simple/
 
清華大學 
https://pypi.tuna.tsinghua.edu.cn/simple/
 
中國科學技術大學 

---------------------------------------------------------------------
2.遇到的問題
問題一:
運行tensorflow-gpu==1.14 時候遇到的問題
ImportError: DLL load failed: 找不到指定的模塊。有可能版本問題

問題二:
cudart64_100.dll 缺少 這個軟件改一下就可以啦!

問題三:


3.測試tensorflow-gpu命令

import tensorflow as tf

hello=tf.constant("hello, tensorflow")

sess=tf.Session()

print(sess.run(hello))


注意上面只有tensorflow-gpu==1.15版本測試成功

tensorflow-gpu==2.0 第二步未測試成功

***********************************************************
大總結:
我的安裝步驟
查看自己電腦是否支持安裝深度學習(需要英偉達桌面管理,cuda,cudnn)
1.下載python
2.下載vs2019社區版本
3.下載cuda  cuda_9.0.176_win10.exe
4.下載cudnn cudnn-9.0-windows10-x64-v7.6.5.32.zip
5.配置cuda和cudn環境變量
##############
6.參考教程
##############
https://blog.csdn.net/j879159541/article/details/93199150
7.安裝遇到的問題參考上面

 

發佈了20 篇原創文章 · 獲贊 7 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章