最近在linux系统上,pip下载后,使用python中的metis库,报错如下:
RuntimeError: Could not locate METIS dll. Please set the METIS_DLL environment variable to its full
提示缺少指向 METIS 动态链接库 (DLL) 文件的完整路径
而linux上METIS 会以共享库(.so
文件)形式存在,而不是 .dll
文件,因此安装libmetis-dev
开发包
sudo apt-get install libmetis-dev
随后检查是否存在.so文件
find /usr -name "libmetis.so*"
最后可正常使用import metis