TensorFlow 報錯記錄

目錄

1、ImportError: libcublas.so.9.0

2、import input_data



1、ImportError: libcublas.so.9.0

Pycharm運行程序ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

CUDA版本什麼的都是對的,之前也運行成功了,但是重啓之後就顯示這個錯誤。

檢查 /usr/local/cuda-9.0/lib64 下是否有 libcublas.so.9.0

如果有,終端輸入:

sudo ldconfig /usr/local/cuda-9.0/lib64

即可。

也有可能是您的版本不對應,可以去我這篇文章中看一下CUDA和Tensorflow版本的對應關係https://blog.csdn.net/zpainter/article/details/88547289

也有可能是沒有添加cuda路徑,文章中也有說到。

2、import input_data

解決方法:

改爲:

from tensorflow.examples.tutorials.mnist import input_data

3、spellchecker inspection helps locate typos and misspelling in your code, comments and literals, and fix them in one click

顯示:spellchecker inspection helps locate typos and misspelling in your code, comments and literals, and fix them in one click

翻譯:拼寫檢查器檢查有助於找到拼寫錯誤和拼寫錯誤在你的代碼,註釋和文字,並在點擊修復

解決方法:

setting –> 搜索框輸入 “inspection”回車 –> 右邊搜索框輸入 “typo” ,取消勾選。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章