openai / guided-diffusion

MIT License
6.06k stars 807 forks source link

ImportError: DLL load failed while importing MPI: The specified procedure could not be found. #27

Open cjyu81 opened 2 years ago

cjyu81 commented 2 years ago

Running into the titular error message. Running on Windows 10 Installed MPI 10.1 from Microsoft Using Python=3.8.13 environment. Used pip to install mpi4py==3.1.3. Did a pip install of the requirements.txt in the evaluations folder.

Is there a yml file or environment I can clone? How can I fix this?

gangrel2321 commented 2 years ago

Do you have MPI installed on your computer (mpi4py requires this to work properly) ?

cjyu81 commented 2 years ago

Installed MPI 10.1 from Microsoft. Updated error description with this info.

KomputerMaster64 commented 2 years ago

I am facing similar issue I have tried installing mpi4py from pip and pip3 Online forums also suggest similar problems in installation

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for mpi4py

Failed to build mpi4py ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects

KomputerMaster64 commented 2 years ago

I found the following command useful as one of the forums suggested to install using conda-forge

conda install -c conda-forge mpi4py

caoyinan123 commented 1 year ago

I found the following command useful as one of the forums suggested to install using conda-forge

conda install -c conda-forge mpi4py

i can just say "NB"!

ser5kovskiy commented 7 months ago
pip install openmpi
pip install mpi==1.0
pip install mpi4py-mpich

that worked for me