tensorflow-gpu-2.0 安裝問題記載


1.setuptools 版本過舊需要更新

ERROR: tensorboard 2.0.0 has requirement setuptools>=41.0.0, but you'll have set
uptools 36.5.0.post20170921 which is incompatible.

  解決方式:

pip install --upgrade setuptools

2.文件wrapt不確定歸屬

ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we
 cannot accurately determine which files belong to it which would lead to only a
 partial uninstall.

  解決方式:

pip install -U --ignore-installed wrapt enum34 simplejson netaddr

3.驅動版本不能支撐cuda運行版本

tensorflow.python.framework.errors_impl.InternalError: cudaGetDevice() failed. S
tatus: CUDA driver version is insufficient for CUDA runtime version

  解決方式: 更新即可

https://zhidao.baidu.com/question/1951584892469977108.html

  tensorflow1.8-gpu安裝注意

cuda9.0+cudnn7.0配套安裝

[補充:我的是Geforce 940M,重新安裝了顯卡驅動397.93-notebook-win10-64bit-international-whql.exe(可能不需要) 下載地址:https://www.geforce.cn/drivers(驅動要與顯卡型號匹配)]

cuda9.0官網下載:https://developer.nvidia.com/cuda-toolkit-archive

cudnn7.0官網下載:https://developer.nvidia.com/rdp/cudnn-archive

5.命令行輸入:nvcc -V //查看cuda是否安裝好

說明:將cudnn7.0文件夾bin、include、lib中的文件分別拷貝至cuda9.0安裝目錄下的對應文件夾中,如我的C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0里的bin、include、lib文件夾內

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM