xuance icon indicating copy to clipboard operation
xuance copied to clipboard

from mpi4py import MPI ImportError: DLL load failed: 找不到指定的模块。

Open TreeB-450 opened this issue 2 years ago • 7 comments

i completely followed the installation, Step1-3, then pip install xuanpolicy[torch], but when i import xuanpolicy, it came to "from mpi4py import MPI " and error "ImportError: DLL load failed: 找不到指定的模块。", What's going on ?

TreeB-450 avatar Sep 08 '23 05:09 TreeB-450

Hi, can you tell me which operating system did you use to install xuanpolicy?

wenzhangliu avatar Sep 08 '23 06:09 wenzhangliu

Hi, can you tell me which operating system did you use to install xuanpolicy?

win10

TreeB-450 avatar Sep 08 '23 07:09 TreeB-450

You can try to install an MPI program from here. Then, reinstall mpi4py: pip uninstall mpi4py pip install mpi4py

wenzhangliu avatar Sep 08 '23 07:09 wenzhangliu

You can try to install an MPI program from here. Then, reinstall mpi4py: pip uninstall mpi4py pip install mpi4py no, it didn't work. a new error appear "OSError: [WinError 126] 找不到指定的模块。"

TreeB-450 avatar Sep 08 '23 08:09 TreeB-450

This link shows a similar issue to yours, hope it will be useful.

wenzhangliu avatar Sep 08 '23 10:09 wenzhangliu

image 按照上述博客方法复制magent.dll到指定文件夹后,还会出现这个错误

blog666 avatar Sep 26 '23 07:09 blog666

Because the software MPI is missing in your PC. For windows system, you can download [msmpisetup.exe] from link https://www.microsoft.com/en-us/download/details.aspx?id=57467 and install it. Then it works.

suishenxiafan avatar Oct 28 '23 08:10 suishenxiafan