如题,pytorch安装完成,在PYTHON3里import torch没有报错,但是重启系统后再import torch,就会报错:
Traceback (most recent call last):
File “”, line 1, in
File “/home/djq/.local/lib/python3.6/site-packages/torch/init.py”, line 198, in
_load_global_deps()
File “/home/djq/.local/lib/python3.6/site-packages/torch/init.py”, line 151, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File “/usr/lib/python3.6/ctypes/init.py”, line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: libomp.so: cannot open shared object file: No such file or directory
I already know the problem. I just ran “export=…” in the terminal and didn’t add it to the “.bashrc” file
Glad to know issue resolved, thanks for the update.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.