2 years ago
Hi,
I've seen this doc to change python version for my deployment:
https://nixpacks.com/docs/providers/python#setup
I want it to be 3.13 instead of 3.11 (default), but nothing seems to do the trick. No matter where I put the 3.13, my app seems to be deploying using 3.11.
Can you help us?
7 Replies
2 years ago
Hello,
Nixpacks does not support python 3.13 yet, for python 3.13 you would want to use a Dockerfile.
brody
Hello, Nixpacks does not support python 3.13 yet, for python 3.13 you would want to use a Dockerfile.
2 years ago
Mmm but I dont understand the docs then: https://nixpacks.com/docs/providers/python#setup
It clearly states 3.13 is available:
Am I missing something?
2 years ago
Okay, good chance I'm wrong then, my apologies.
How have you specified the Python version?
How do you know 3.13 isn't being used?
Are you pinning the Nixpacks version to a version of Nixpacks that came out when 3.13 didn't exist?
2 years ago
In the app im deploying i have an admin space where I print the used python version, and still says 3.11.9.
To specify python version I did all the possibilities: NIXPACKS_PYTHON_VERSION param, python-version file, runtime.txt file...
I look around to see if I have an specific version of nixpacks, but it does not seem like so. I dont see any versions specified for nixpacks anywhere :-(
2 years ago
I think I got it. Im using nixpacks 1.29.1, but python 3.13 is available only from 1.30. The question now is, how do I bumb nixpacks?
2 years ago
Ah Gotcha, you can set your desired version as shown here -
https://docs.railway.com/reference/config-as-code#nixpacks-version