Sometimes pip install momi fails because import numpy is invoked in the build process before numpy is installed.
A 2nd invocation of pip install momi generally works because numpy is present at that point.
The error can be prevented by installing numpy before momi.
The build process uses some tricks to try and prevent early import of numpy, but these are fragile and seem to have partially stopped working. Switching the build process to use pyproject.toml may fix this. See also:
Sometimes
pip install momi
fails becauseimport numpy
is invoked in the build process before numpy is installed.A 2nd invocation of
pip install momi
generally works because numpy is present at that point.The error can be prevented by installing numpy before momi.
The build process uses some tricks to try and prevent early import of numpy, but these are fragile and seem to have partially stopped working. Switching the build process to use pyproject.toml may fix this. See also:
Relevant error messages below: