报错
ImportError: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory
$ python ***
Traceback (most recent call last):
File "***.py", line 6, in <module>
import torch
File "/home/ubuntu/anaconda3/envs/gepc/lib/python3.6/site-packages/torch/__init__.py", line 81, in <module>
from torch._C import *
ImportError: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory
可以在别的环境找一个然后复制过去(治标不治本,可能还有后续文件也需要复制)。
$ sudo find /home -name libmkl_intel_lp64.so
- 但实际上可能是下载的包的问题,可以在安装前
pip install --upgrade pip
,或者直接pip install ***
参考与更多
$ conda install ***.tar.bz2
Downloading and Extracting Packages
########################################################################################################################################################## | 100%
Preparing transaction: done
Verifying transaction: done