当前位置: 代码迷 >> 综合 >> mxnet OSError: libnvrtc.so.11.0: cannot open shared object file: No such file or directory
  详细解决方案

mxnet OSError: libnvrtc.so.11.0: cannot open shared object file: No such file or directory

热度:17   发布时间:2023-12-15 16:23:21.0

import mxnet
报错:

Traceback (most recent call last):File "<stdin>", line 1, in <module>File "/home/user1/.local/lib/python3.6/site-packages/mxnet/__init__.py", line 23, in <module>from .context import Context, current_context, cpu, gpu, cpu_pinnedFile "/home/user1/.local/lib/python3.6/site-packages/mxnet/context.py", line 23, in <module>from .base import classproperty, with_metaclass, _MXClassPropertyMetaClassFile "/home/user1/.local/lib/python3.6/site-packages/mxnet/base.py", line 351, in <module>_LIB = _load_lib()File "/home/user1/.local/lib/python3.6/site-packages/mxnet/base.py", line 342, in _load_liblib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)File "/home/user1/anaconda3/envs/mxgpu/lib/python3.6/ctypes/__init__.py", line 348, in __init__self._handle = _dlopen(self._name, mode)
OSError: libnvrtc.so.11.0: cannot open shared object file: No such file or directory

你cuda可能安装的不是11.0,试试安装11.0版本吧
以及对应版本的cudnn

  相关解决方案