You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The monai ITK requirement seems to be pegged to versions >=5.0, <=5.1.2; Unfortunately these cannot be installed in an environment of Python 3.11 on macOS w/ ARM. These versions are quite old (more than four years) and are pretty much from the pandemic era.
I am aware that setup.py references ITK > 5.2.0 but clearly this gets overriden somewhere.
To Reproduce
Steps to reproduce the behavior:
Have a mac with m1 or later processor (2020 or later)
Create new environment with Python 3.11
Try installing pip install monai[all]
Observe following output:
Collecting monai[all]
Using cached monai-0.6.0-202107081903-py3-none-any.whl.metadata (6.0 kB)
Collecting itk<=5.1.2,>=5.0 (from monai[all])
Using cached itk-5.0.1.tar.gz (13 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [4 lines of output]
scikit-build is required to build from source.
Please run:
python -m pip install scikit-build
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed.
Manually installing ITK with pip install itk pulls version 5.4.2 and completes succesfully. With an nice arm64 build as well.
Expected behavior
Installation to happen succesfully.
Screenshots
See shell output above.
Environment
Ensuring you use the relevant python executable, please paste the output of:
@Markus92 pip system cache is used whether using a virtualenv or not. It appears you have an old MONAI 0.6.0 whl in your cache so specifying pip install monai[all] is going to re-use that cached whl because you are not specifying a newer version of MONAI. If you did pip install monai[all] -U to upgrade the package as well, it would determine that you don’t have latest monai 1.4.0 and would download that whl from the web. The newer monai version specifies itk>=5.2 so it would pull the newer itk with the arm build.
Describe the bug
The monai ITK requirement seems to be pegged to versions >=5.0, <=5.1.2; Unfortunately these cannot be installed in an environment of Python 3.11 on macOS w/ ARM. These versions are quite old (more than four years) and are pretty much from the pandemic era.
I am aware that setup.py references ITK > 5.2.0 but clearly this gets overriden somewhere.
To Reproduce
Steps to reproduce the behavior:
pip install monai[all]
Manually installing ITK with
pip install itk
pulls version 5.4.2 and completes succesfully. With an nice arm64 build as well.Expected behavior
Installation to happen succesfully.
Screenshots
See shell output above.
Environment
Ensuring you use the relevant python executable, please paste the output of:
This is after installing some requirements by hand:
Additional context
See also issue #1629 that was filed four years ago.
The text was updated successfully, but these errors were encountered: