- 具体报错如下:
- 解决方案
import metis
File “E:anacondaenvspy36torchlibsite-packagesmetis.py”, line 438, in
raise RuntimeError(‘Could not locate METIS dll. Please set the METIS_DLL environment variable to its full path.’)
RuntimeError: Could not locate METIS dll. Please set the METIS_DLL environment variable to its full path.
安装 metis
pip install pymetis
Running setup.py install for pymetis … error
ERROR: Command errored out with exit status 1:
安装失败,则尝试离线安装
链接: link.
下载对应版本的wheel文件,进行离线安装
以win python3.6为例
下载PyMetis-2019.1.1-cp36-cp36m-win_amd64.whl,CD到whl所在路径
pip insatll PyMetis-2019.1.1-cp36-cp36m-win_amd64.whl
运行python时,将py文件中的
import metis 改为
import pymetis as metis



