inplace-abn 報錯解決: ImportError: libcudart.so.9.0: cannot open shared object file: No such file or dir
inplace-abn 報錯解決
報錯資訊如下:
Traceback (most recent call last):
File "train.py", line 14, in <module>
from unet import UNet
File "/data3/yuechen/new/pytorch_unet/unet/__init__.py", line 1, in <module>
from .unet_model import UNet
File "/data3/yuechen/new/pytorch_unet/unet/unet_model.py", line 5, in <module>
from .unet_parts import *
File "/data3/yuechen/new/pytorch_unet/unet/unet_parts.py", line 7, in <module>
from inplace_abn import InPlaceABN, InPlaceABNSync
File "/data3/yuechen/software/anaconda3/envs/unet10/lib/python3.6/site-packages/inplace_abn/__init__.py", line 1, in <module>
from .abn import ABN, InPlaceABN, InPlaceABNSync
File "/data3/yuechen/software/anaconda3/envs/unet10/lib/python3.6/site-packages/inplace_abn/abn.py", line 8, in <module>
from .functions import inplace_abn, inplace_abn_sync
File "/data3/yuechen/software/anaconda3/envs/unet10/lib/python3.6/site-packages/inplace_abn/functions.py", line 8, in <module>
from . import _backend
ImportError: libcudart.so.9.0: cannot open shared object file: No such file or directory
原因是在 209 上裝的是 10.0 的,但是這裡不知道為啥弄了一個 9.0 的過來,但是 inplace-abn 的官網上說是支援 10.0 的,不知道為啥啊。
嘗試1(失敗)
嘗試直接這樣解決:
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/data3/yuechen/new/cuda-9.0-files/lib64"
嘗試2 (成功解決)
設定 CUDA_HOME
export CUDA_HOME=/usr/local/cuda-10.0
嘗試3(失敗)
同時設定 LD_LIBRARY_PATH
為 10.0 版本
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64/"
嘗試4(成功)
因為這個模組涉及到編譯,而這個模組安裝的時候是不會自動檢查你的 CUDA
是什麼版本的,需要在編譯前手動設定一下CUDA_HOME
,如果已經安裝,則按照下面的步驟執行:
# 解除安裝這個庫
pip uninstall inplace-abn
# 清除 pip 快取
rm -r ~/.cache/pip
# 設定 CUDA_HOME
export CUDA_HOME=/usr/local/cuda-10.0
# 重新安裝
pip install inplace-abn
相關文章
- 解決ImportError: libmysqlclient_r.so.16: cannot open shared object fileImportErrorIBMMySqlclientObject
- while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or dirWhilethreadObject
- 呼叫torchtext報錯OSError: libtorch_cpu.so: cannot open shared object file: No such file or directoryErrorObject
- libcudart.so.8.0: cannot open shared object file解決方案DartObject
- libmysqlclient.so.16: cannot open shared object file: No such file or directoryIBMMySqlclientObject
- libcap.so.1:cannot open shared object file: No such file or directoryObject
- libXext.so.6: cannot open shared object file: No such file or directoryObject
- libz.so.1: cannot open shared object file: No such file or directoryObject
- shared libraries: libpthread.so.0: cannot open shared object file: No such file or directorythreadObject
- Nginx安裝啟動過程報錯libpcre.so.1 cannot open shared object file: No such file or directoryNginxObject
- 記錄 libldap-2.4.so.2: cannot open shared object file: No such file or directoryLDAObject
- 問題1.libXp.so.6: cannot open shared object file: No such file or directoryObject
- (轉)RAC srvctl 命令報 libpthread.so.0 cannot open shared object file解決辦法threadObject
- libiconv.so.2: cannot open shared object file: No such filObject
- oracle安裝報錯libawt.so:libXP.so.6:cannot open shared object fileOracleObject
- Nagios監控mysql從庫報錯:libmysqlclient.so.18: cannot open shared object fileiOSMySqlIBMclientObject
- 安裝grid時報錯:libXext.so.6: cannot open shared object fileObject
- python libclntsh.so.12.1: cannot open shared object filePythonObject
- error while loading shared libraries: libodm9.so: cannot open shared object file: No such file or diErrorWhileObject
- RAC執行root.sh報libcap.so.1: cannot open shared object fileObject
- Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directoryAIErrorObject
- 11.2.0.3 rac on redhat 6.2 libcap.so.1: cannot open shared object fileRedhatObject
- 11.2.0.4 rac on redhat 6.5 libcap.so.1: cannot open shared object fileRedhatObject
- Redhat5下安裝ORACLE10.2.0.1報錯“libXp.so.6: cannot open shared object file”RedhatOracleObject
- opensuse13.1 安裝chrome報 error while loading shared libraries:libudev.so.0:cannot open shared object file:no file or directoryChromeErrorWhiledevObject
- error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No suchErrorWhileIBMMySqlclientObject
- 裝10gRAC遇到的libpthread.so.0: cannot open shared object file問題threadObject
- /lib/i386/libawt.so: libXp.so.6: cannot open shared object fileObject
- ftp 報錯 550 Failed to open fileFTPAI
- EM 10g Grid Control Fails With 'libdb.so.2: cannot open shared object file:AIObject
- rpm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such fi...ErrorWhileGCObject
- ./XXX.XX: error while loading shared libraries: libGLEW.so.2.1: cannot open shared object file: NoErrorWhileObject
- error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: NErrorWhilePythonObject
- 【問題處理】啟動OUI丟擲libXp.so.6: cannot open shared object file問題處理UIObject
- tar (child): bzip2: Cannot exec: No such file or directory 報錯
- /jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file問題處理Object
- Oracle utl_file_dir引數詳解Oracle
- Oracle utl_file_dir引數解釋Oracle