← all conversations

Numba Python 3.13 Issue

2025-04-022 turns5,274 charsgpt-4o
pythonpackage-managementcompatibility

Summary

User encountered issues installing Python packages due to Python 3.13 compatibility problems.

Messages

Collecting mpmath==1.3.0 (from -r requirements.txt (line 155)) Using cached mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB) Collecting multidict==6.0.5 (from -r requirements.txt (line 156)) Using cached multidict-6.0.5-py3-none-any.whl.metadata (4.2 kB) Collecting multiprocess==0.70.16 (from -r requirements.txt (line 157)) Using cached multiprocess-0.70.16-py312-none-any.whl.metadata (7.2 kB) Collecting mypy-boto3-s3==1.34.138 (from -r requirements.txt (line 158)) Using cached mypy_boto3_s3-1.34.138-py3-none-any.whl.metadata (17 kB) Collecting mypy-extensions==1.0.0 (from -r requirements.txt (line 159)) Using cached mypy_extensions-1.0.0-py3-none-any.whl.metadata (1.1 kB) Collecting narwhals==1.26.0 (from -r requirements.txt (line 160)) Using cached narwhals-1.26.0-py3-none-any.whl.metadata (10 kB) Collecting nest-asyncio==1.6.0 (from -r requirements.txt (line 161)) Using cached nest_asyncio-1.6.0-py3-none-any.whl.metadata (2.8 kB) Collecting networkx==3.3 (from -r requirements.txt (line 162)) Using cached networkx-3.3-py3-none-any.whl.metadata (5.1 kB) Collecting nh3==0.2.20 (from -r requirements.txt (line 163)) Using cached nh3-0.2.20-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.metadata (2.0 kB) Collecting nltk==3.8.1 (from -r requirements.txt (line 164)) Using cached nltk-3.8.1-py3-none-any.whl.metadata (2.8 kB) Collecting nodeenv==1.9.1 (from -r requirements.txt (line 165)) Using cached nodeenv-1.9.1-py2.py3-none-any.whl.metadata (21 kB) Collecting numba==0.60.0 (from -r requirements.txt (line 166)) Using cached numba-0.60.0.tar.gz (2.7 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [24 lines of output] Traceback (most recent call last): File "/Users/danielkliewer/cb02/morphik-core/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() ~~~~^^ File "/Users/danielkliewer/cb02/morphik-core/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/danielkliewer/cb02/morphik-core/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel return hook(config_settings) File "/private/var/folders/58/t6jcwg652pjgp9ksqzjfkqtw0000gn/T/pip-build-env-kzxv1xs7/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/58/t6jcwg652pjgp9ksqzjfkqtw0000gn/T/pip-build-env-kzxv1xs7/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires self.run_setup() ~~~~~~~~~~~~~~^^ File "/private/var/folders/58/t6jcwg652pjgp9ksqzjfkqtw0000gn/T/pip-build-env-kzxv1xs7/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 522, in run_setup super().run_setup(setup_script=setup_script) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/58/t6jcwg652pjgp9ksqzjfkqtw0000gn/T/pip-build-env-kzxv1xs7/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup exec(code, locals()) ~~~~^^^^^^^^^^^^^^^^ File "<string>", line 51, in <module> File "<string>", line 48, in _guard_py_ver RuntimeError: Cannot install on Python version 3.13.2; only versions >=3.9,<3.13 are supported. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.
The issue is that **Numba 0.60.0 does not support Python 3.13**, as indicated by the error: > `RuntimeError: Cannot install on Python version 3.13.2; only versions >=3.9,<3.13 are supported.` ### **Solutions** 1. **Downgrade Python** - If your project allows it, switch to **Python 3.12** or **Python 3.11**, which are supported by Numba. - You can create a new virtual environment with Python 3.12: ```sh pyenv install 3.12.2 # If using pyenv pyenv local 3.12.2 python -m venv venv source venv/bin/activate pip install -r requirements.txt ``` 2. **Skip Numba** - If **Numba** isn't a critical dependency, try removing it from `requirements.txt` and install everything else. 3. **Use a Different Version of Numba** - If an updated version of Numba comes out supporting Python 3.13, you could try installing it with: ```sh pip install --upgrade numba ``` Let me know which approach works best for your setup!
gpt-4o