Status on Python

Does anyone know about the current state of Python on the package manager?

I’ve been using python313 since 25.05 and recently updated to 25.11 (wooo first year on nixos)

I’m wondering how the newer versions of python are being handled, I’ve had this in my configuration.nix
``nix
(python313.withPackages (ps: with ps; [
pip mutagen scipy pandas jupyterlab ipython
scikit-learn pillow sqlalchemy aiosqlite opencv4 anthropic
matplotlib numpy plotly
requests
backtesting
]))
```
and just tried swapping it out to python315 (there’s no large corpus of packages yet i’m aware of) and i couldn’t even use pip to install python extensions into my virtual environment. I just want to know if somethings changed with the way python is being packaged since 313 since 314 doesn’t appear to have the Packages. thing either.

Nothing has changed, all python versions have been built with the exact same derivation for years: nixpkgs/pkgs/development/interpreters/python/cpython/default.nix at 23d72dabcb3b12469f57b37170fcbc1789bd7457 · NixOS/nixpkgs · GitHub

You probably aren’t using the python from your configuration.nix.

Maybe i didn’t explain well enough, in python313 there is a large library of python libraries (usually downloaded through pip but also including pip) found at python313Packages. in nixpkgs. Now with 315 there is no python315Packages library that contains pip, so i don’t know how to download the libraries i’d usually use for development.

python315Packages is available from NixOS 25.11 and newer, though I doubt its current usefulness, because we haven’t really built into the package set yet.

1 Like