Skip to content

pip install -r requirements.txt fails on pyradiomics — ModuleNotFoundError: No module named 'numpy' in build subprocess #5

Description

@TonyG666

Environment:
OS: macOS M3
Python: 3.11.13

Steps to Reproduce
git clone --recurse-submodules https://github.com/TUL-Dev/QuantUS.git
cd QuantUS
python3.11 -m pip install virtualenv
python3.11 -m virtualenv .venv
source .venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install numpy
pip install -r requirements.txt

What Happened:
Installation fails when pip tries to build pyradiomics==3.0.1 from source:
ModuleNotFoundError: No module named 'numpy'

ERROR:
Failed to build 'pyradiomics' when getting requirements to build wheel

Expected Behavior
pyradiomics should build cleanly as part of pip install -r requirements.txt without requiring manual workarounds.

Additional Context:
numpy is already listed in requirements.txt but pip resolves the full requirements list in parallel, so numpy may not be installed before pyradiomics' build step kicks off.
This may also be a broader incompatibility between pyradiomics==3.0.1 and numpy>=2.x. Worth verifying whether pyradiomics supports numpy 2.x at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions