How to Install numba in Python
compiling Python code using LLVM
pip install numba
What is numba?
compiling Python code using LLVM
A Just-In-Time Compiler for Numerical Functions in Python
Numba is an open source, NumPy-aware optimizing compiler for Python sponsored by Anaconda, Inc. It uses the LLVM compiler project to generate machine code from Python syntax.
Numba can compile a large subset of numerically-focused Python, including many NumPy functions. Additionally, Numba has support for automatic parallelization of loops, generation of GPU-accelerated code, and creation of ufuncs and C callbacks.
Quick Start
Minimal example to get started with numba:
import numba
print(numba.__version__)
Installation
pip (standard)
pip install numba
Virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install numba
pip3
pip3 install numba
conda
conda install -c conda-forge numba
Poetry
poetry add numba
Dependencies
Installing numba will also install these packages:
Verify the Installation
After installing, confirm the package is available:
python -c "import numba; print(numba.__version__)"
If this prints a version number, installation succeeded. If you see a ModuleNotFoundError, see the errors section below.
Installation Errors
Common errors when installing numba with pip.
ModuleNotFoundError: No module named 'numba'
Cause: The package is not installed in the current Python environment.
Fix: Run pip install numba. If using a virtual environment, ensure it is activated first.
ModuleNotFoundError: No module named 'numba' (installed but still failing)
Cause: pip installed the package into a different Python than the one running your script.
Fix: Use python -m pip install numba to install into the interpreter you are running.
ImportError: cannot import name 'X' from 'numba'
Cause: The function or class does not exist in the installed version.
Fix: Check the version with pip show numba and upgrade with pip install --upgrade numba.
pip: command not found
Cause: pip is not in PATH or Python was not added to PATH during installation.
Fix: Try python -m pip install numba. On macOS/Linux try pip3.
PermissionError: [Errno 13] Permission denied
Cause: No write access to the system Python package directory.
Fix: Use a virtual environment, or add --user: pip install --user numba
SSL: CERTIFICATE_VERIFY_FAILED
Cause: pip cannot verify PyPI's SSL certificate — common behind corporate proxies.
Fix: Try: pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org numba
Recent Releases
| Version | Released |
|---|---|
0.65.0 latest |
2026-04-01 |
0.65.0rc1 |
2026-03-14 |
0.64.0 |
2026-02-18 |
0.64.0rc1 |
2026-02-04 |
0.63.1 |
2025-12-10 |
Manage numba
Upgrade to latest version
pip install --upgrade numba
Install a specific version
pip install numba==0.65.0
Uninstall
pip uninstall numba
Check what is installed
pip show numba