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: libffi.so.7: cannot open shared object file: No such file or directoryImportErrorObject
- 呼叫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
- python libclntsh.so.12.1: cannot open shared object filePythonObject
- conda環境下ImportError: libmkl_intel_lp64.so.1: cannot open shared object file問題解決ImportErrorIBMIntelObject
- Nginx安裝啟動過程報錯libpcre.so.1 cannot open shared object file: No such file or directoryNginxObject
- 影片匯聚平臺EasyCVR啟動出現報錯“cannot open shared object file”的原因排查與解決VRObject
- CentOS7提示 libsasl2.so.2: cannot open shared object fileCentOSObject
- ./XXX.XX: error while loading shared libraries: libGLEW.so.2.1: cannot open shared object file: NoErrorWhileObject
- rpm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such fi...ErrorWhileGCObject
- error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: NErrorWhilePythonObject
- error while loading shared libraries: libgsl.so.27: cannot open shared objectErrorWhileObject
- tar (child): bzip2: Cannot exec: No such file or directory 報錯
- 解決GD32新建工程時提示:cannot open source input file “RTE_Components.h“
- mongodb錯誤解決辦法-bash: ./mongod: cannot execute binary file: Exec format errorMongoDBORMError
- sqlserver bulk insert報錯Cannot bulk load because the file could not be opened.SQLServer
- linux解決“XXX is not in the sudoers file”錯誤Linux
- scp 報錯 not a regular file
- object dict cannot be used in await expression報錯解釋ObjectAIExpress
- MogDB 安裝解壓錯誤:cannot run bzip2: No such file or directory
- ImportError: cannot import name ‘imresize‘解決辦法ImportError
- 解決問題:OSError: Unable to open file (truncated file: eof = 22118400, sblock->base_addr = 0, stored_eofErrorBloC
- 解決Chrome外掛安裝時報錯:“Manifest file is missing or unreadable“Chrome
- 解決ubuntu系統“XXX is not in the sudoers file”錯誤Ubuntu
- Can't open file: (errno: 24)
- WPF open image and print as pdf file
- Error while loading shared libraries: libreadline.so.7: cannot open shared objecErrorWhileOBJ
- imagick使用readImage報錯 Failed to read the file 或者沒有報錯內容的解決方法AI
- querydsl報錯: Attempt to recreate a file for type
- 頁面報錯 No input file specified
- open_basedir() restrictijon in effect. FIle()REST
- Linux open file與 fs-maxLinux
- iis 0x80070032 Cannot read configuration file because it exceeds the maximum file size
- 解決 ImportError: cannot import name 'imread' from 'scipy.misc'ImportError
- 解決“su: cannot open session: Permission denied”Session
- cannot find trajectory file at ./examples/trajectory.txt
- apache PHP 隱藏 index.php 報錯 No input file specified. 解決辦法ApachePHPIndex