Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ModuleNotFoundError: No module named 'numpy' when installing pyradiomics on python 3.12 #872

Open
DerJul-14 opened this issue Mar 11, 2024 · 4 comments
Labels

Comments

@DerJul-14
Copy link

I am trying to install pyradiomics via pip install or from source on a Win 10 computer I get an error report that numpy is not installed evendough it is.

py", line 311, in run_setup
exec(code, locals())
File "", line 7, in
ModuleNotFoundError: No module named 'numpy'
[end of output]

When I check the requirements via 'python -m pip install -r requirements.txt' everything looks good:

Requirement already satisfied: numpy in d:\programme\python\lib\site-packages (from -r requirements.txt (line 1)) (1.26.4)

Any ideas? Is the only solution to run an old python version? Thank you!

  • OS: Windows 10
  • Python version: 3.12
  • PyRadiomics version -
@DerJul-14 DerJul-14 added the bug label Mar 11, 2024
@joaoluizcarvalho
Copy link

I got the same error when trying to install pyradiomics on Fedora 39 (Python 3.12.2).

@zt0214
Copy link

zt0214 commented May 4, 2024

The only solution seems to be install Python 3.9

@dsantiago
Copy link

Just try pip install numpy and see if it solves...

@Zhack47
Copy link

Zhack47 commented Sep 10, 2024

Installing it from source worked for me on Python3.12 with a venv.
You will also need the workaround from #886 to bypass the versioneer errors

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants