Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Cannot install on Python version 3.11.8; only versions >=3.7,<3.11 are supported. #164

Open
Eddy-Powers opened this issue Mar 29, 2024 · 2 comments

Comments

@Eddy-Powers
Copy link

Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-yy0htwn4/numba_fa7d338fc5844d07a46d40883585ba6a/setup.py", line 51, in
_guard_py_ver()
File "/tmp/pip-install-yy0htwn4/numba_fa7d338fc5844d07a46d40883585ba6a/setup.py", line 48, in _guard_py_ver
raise RuntimeError(msg.format(cur_py, min_py, max_py))
RuntimeError: Cannot install on Python version 3.11.8; only versions >=3.7,<3.11 are supported.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@Eddy-Powers
Copy link
Author

In the same virture environment, it can't install different python version. like this How to do ?
thnx

@donno
Copy link

donno commented Mar 30, 2024

I tweaked the requirements.txt, to raise the version of numpy similar principal to #156 but I went for latest and this allowed the depedencies to be installed.

-numpy==1.22.0
+numpy==1.26.4

Prior to that change pip wanted to install numba 0.56.4 for me. This was problematic as support for Python 3.11 was added to numba in 0.57.0. The minimum version of numpy required for that version of numba was raised to 1.21 or greater (so 1.22.0) should be newer enough for that..

Edit: Make a similar change in the setup.py to upgrade numpy.

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

No branches or pull requests

2 participants