OSError: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory

Traceback (most recent call last):
  File "train.py", line 11, in
    import torch.distributed as dist
  File "/home/gbstack/anaconda3/envs/yolov5/lib/python3.7/site-packages/torch/__init__.py", line 195, in
    _load_global_deps()
  File "/home/gbstack/anaconda3/envs/yolov5/lib/python3.7/site-packages/torch/__init__.py", line 148, in _load_global_deps
    ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
  File "/home/gbstack/anaconda3/envs/yolov5/lib/python3.7/ctypes/__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory

 

这是因为我手动通过包文件安装了pytorch,之前的conda install pytorch没有执行成功,所以对应的依赖mkl也没有安装成功。

重新运行conda install pytorch便可解决。

你可能感兴趣的:(python,pytorch,python,pytorch,yolov5)