Error when importing mpi4py
Issue #181
resolved
Hello:
I download the mpi4py (3.1.3) from the website “Anaconda.org” and then installed it by running “conda install --use-local mpi4py-3.1.3-py39h72a80d3_1.tar.bz2” in a virtual environment named “custEM” based on python 3.9.12 on my MacBook Pro (M1). But when I run a python file, it reminded me like the figure below:
And then I checked it again, the results are illustrated like:
I can’t figure out what’s wrong during installing the mpi4py, and can anybody tell me how could I fix the situation?
Thanks ahead!
Comments (2)
-
-
- changed status to resolved
- Log in to comment
When you create a new issue in this repository at Bitbucket, you get a large admonition saying:
WARNING: This is no longer the official repository of mpi4py. DO NOT SUBMIT YOUR ISSUE HERE.
WARNING: mpi4py development has migrated to GitHub https://github.com/mpi4py/mpi4py
Next time, submit your issues to GitHub.
That being said, the error message you get is rather obvious.
You have downloaded the macOS package for architecture arm64 (Apple Silicon Mac), but looks like your computer is x86_64 (Intel-based Mac).
Why are you downloading and installing manually? You should just do
conda install -c conda-forge mpi4py
.If you insist with downloading manually and installing locally, go to https://anaconda.org/conda-forge/mpi4py/files and make sure you download a file that starts with
osx-64/
, notosx-arm64
.