ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
執行環境:anaconda的虛擬環境
出現這個的原因,很多網友都說是因為cuda版本的問題,但我發現,還有一個原因,就是tensorflow對應的python版本的問題。看圖,這時的tensorflow是python2.7版本的。
所以當我在用python2.7時,就不會出錯
而當我在python3.6環境下匯入tensorflow時就會出錯
再用conda list檢視python的版本
發現預設的python版本是2.7 .這個虛擬環境我建立的時候制定的是3.6,不知為何就變成2.7了。
解決辦法。重新新建conda環境,重新安裝tensorflow。
conda create --name tensorflow python=3.6 conda install tensorflow #純cpu版本 conda install tensorflow-gpu # gpu版本 conda list
安裝好了之後,會發現tensorflow變成python3.6版本的了。
再看看預設的python版本
也是3.6。tensorflow的版本和python的版本對應了,那麼執行起來就沒有問題了。
至於anaconda虛擬環境的python版本為什麼會變,我也沒搞清楚。
相關推薦
[解決方案]ImportError: libcublas.so.9.0: cannot open shared object file
用pip直接安裝tensorflow之後,import tensorflow的時候出現如題的錯誤。在網上找了一下,發現可能有兩種原因。 tensorflow版本與CUDA版本不匹配。這種情況下,一般
【Python配置】ImportError:libcublas.so.9.0: cannot open shared object file
在ubuntu上安裝tensorflow-gpu版本 pip3 install tensorflow-gpu 安裝成功後,執行 import tensorflow 出現錯誤 Imp
[解決方法] ImportError: libcublas.so.9.0: cannot open shared object file
用pip直接安裝tensorflow之後,import tensorflow的時候出現如題的錯誤。在網上找了一下,發現可能有兩種原因。 tensorflow版本與CUDA版本不匹配。這種情況下,一般直接升/降級tensorflow就行(我的電腦上cuda9.0搭配tenso
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
執行環境:anaconda的虛擬環境 出現這個的原因,很多網友都說是因為cuda版本的問題,但我發現,還有一個原因,就是tensorflow對應的python版本的問題。看圖,這時的tensorflow是python2.7版本的。 所以當我在用python2.7時,就不會
tensorflow cuda版本錯誤 libcublas.so.9.0: cannot open shared object file: No such file or directory
錯誤 ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory Failed to load the native TensorFlow runtime. 解決: te
PyCharm ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory 解決辦法
圖片 object shared 8.0 body har error err cto PyCharm ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or d
tensorflow-gpu版本出現libcublas.so.8.0:cannot open shared object file
文章主要參考以下部落格https://www.aliyun.com/zixun/wenji/1289957.html 在利用GPU加速tensorflow時,出現了libcublas.so.8.0:cannot open shared object file的問題,為了解決這個問題,參考了很多部落格,發現是
ubuntu下tensorflow 報錯 libcusolver.so.8.0: cannot open shared object file: No such file or directory
export direct config sudo 8.0 ring 終端 運行 ber 解決方法1. 在終端執行: export LD_LIBRARY_PATH=”$LD_LIBRARY_PATH:/usr/local/cuda/lib64” export CUDA_H
libopencv_shape.so.3.0: cannot open shared object file: No such file or directory 解決筆記
進入目錄:/etc/ld.so.conf.d 建立:opencv.conf 新增:/opt/opencv-3.0.0/build/lib 執行:ldconfig DETAIL: (1)ldd dlsd檢視缺少哪些庫:如圖,缺少opencv相關的庫。(2)locate libopencv_imgcod
libcudart.so.9.2: cannot open shared object file: No such file or directory
解決辦法: 配置環境變數: export LD_LIBRARY_PATH=/usr/local/cuda-9.2/lib64:$LD_LIBRARY_PATH export PATH=/usr/local/cuda-9.2/bin:$PATH 加入到 ~/.bashrc 執行s
error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: can not open
裝好caffe後,第一件事就是先跑跑自帶的mnist例子看看能不能跑通。 問題: 結果發現如下問題,問題比較多,但都是一個性質的,解決一個其他都一樣: ./build/tools/caffe: error while loading shared libraries
cuda程式執行出錯: libcudart.so.8.0: cannot open shared object file: No such file or directory
問題描述: error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file or directory 解決辦法:首先確認/etc/pro
.build_release/tools/caffe: error while loading shared libraries: libcudart.so.9.0: cannot open shar
[email protected]:~/caffe$ sudo make runtest -j8 .build_release/tools/caffe .build_release/tools/caffe: error while loading shared libraries: lib
ImportError: libssl.so.1.0.0: cannot open shared object file: No such file o
yum -y install gcc automake autoconf libtool make wget https://w
Ubuntu14.04 ,libboost_filesystem.so.1.54.0: cannot open shared object file: No such file or directory
mage erro ror file pack ack inf des span macname@ubuntu:/opt$ roslaunch blarospack : error while loading shared libraries: libboost_f
libcaffe.so.1.0.0: cannot open shared object file: No such file or directory 運行時報錯
ash path port tor libc lease pre caf 簡單 caffe安裝好後lib沒有配置到/usr/lib或/usr/local/lib中,需手動配置: sudo vim ~/.bashrc export LD_LIBRARY_PATH=your_p
svnserve: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file:
1、安裝svnyum -y install subversion 2、啟動svnsvnserve -d -r /www/svndata 啟動svn時以下異常svnserve: error while loading shared libraries: libapru
libpthread.so.0: cannot open shared object file解決方法
在linux 5上裝10G RAC時,常常會碰到“libpthread.so.0: cannot open shared object file"這個報錯的,這個報錯是由於無法使用vipca導致的。 該報錯有以下兩種解
ImportError libcublas.so.9.0
ipo href com tor class pen ins direct dir What to do when you‘ve installed cuda and tensorflow, but you get this error right after you im
解決OpenSSL:error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No
解決OpenSSL:error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No