改了三天的bug,三天呐·····························
背景:
linux系统
出错问题:在安装或运行torch-geometric时失败
File "C:\Users\32373\AppData\Local\Programs\Python\Python37\lib\ctypes\__init__.py", line 356, in __init__
self._handle = _dlopen(self._name, mode) OSError: libcusparse.so.11: cannot open shared object file:No such file or directory
错误内容大致是这样,
当然,其中的“libcusparse.so.11” 也可能是其他模块
或者是这样的错误:
File “/usr/lib/python3.6/ctypes/init.py”, line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: libmpi_cxx.so.20: cannot open shared object file: No such file or directory
等等类似的问题,都可以用以下下方法解决:
sudo apt-get install libopenblas-base libopenmpi-dev
参考链接:Cannot install pytorch - #4 by dj_pcv - Jetson Nano - NVIDIA Developer Forums