Oldest-supported-numpy is a meta-package that dynamically provides the oldest compatible NumPy version for a given Python interpreter and platform. It ensures that if a platform only gained support for NumPy wheels at a more recent version, that specific version is provided. The current version is 2023.12.21, and its release cadence is irregular, typically updated when new NumPy versions or platform support changes warrant it.
pip install oldest-supported-numpyNo compatibility data collected yet for this library.
This quickstart demonstrates how to install `oldest-supported-numpy` and then verifies which NumPy version was installed by importing it and checking `np.__version__`. It then shows a basic NumPy operation.
Do not attempt to `import oldest_supported_numpy`. Instead, once installed, `import numpy` to use the NumPy library.
Always check `numpy.__version__` after installation to confirm the exact version. If you require a *specific* NumPy version that is newer than what `oldest-supported-numpy` provides, you must explicitly pin `numpy==X.Y.Z` in your `requirements.txt` or `pyproject.toml`.
For highly reproducible builds where the NumPy version must be identical across all environments, explicitly pin `numpy==X.Y.Z` in your dependency list. Use `oldest-supported-numpy` primarily when you need to ensure basic compatibility across a range of older Python versions without manually finding the minimal NumPy for each.
Ensure `pip` or your package manager is correctly configured to install build dependencies. In some cases, for specific environments (e.g., custom Linux distributions or build systems), replacing the `oldest-supported-numpy` requirement with a specific `numpy` version constraint (e.g., `numpy >= 1.19.3`) in your project's `pyproject.toml` or `requirements.txt` might be necessary.
Upgrade your Python interpreter to a supported version (Python 3.5 or newer). If the problematic package only requires `numpy` and not specifically `oldest-supported-numpy`, consider removing `oldest-supported-numpy` from your project's dependencies and just specify a compatible `numpy` version directly.
Create a new virtual environment and reinstall all dependent packages, allowing `pip` to resolve and install compatible versions of NumPy and its dependents. For packages installed from source, ensure consistent NumPy versions are used both during compilation (often through build constraints) and at runtime.
Ensure NumPy is correctly installed and its path is accessible. If using a package that relies on `oldest-supported-numpy` for its build, try reinstalling the dependent package in a clean virtual environment to force a fresh resolution and installation of NumPy. Sometimes, explicitly running `pip install numpy` before installing the problematic package can help.
No dependency data recorded yet.