Build runs with Python 3.8 and not Python 3.11?

AnonymousTRIAL

a year ago

Hello, I have a problem with my build because it seems like it's running Python 3.8 which should be Python 3.11.
Ofc my modules and stuff doesn't work properly because of this. How and where do I change this?
I added a screen here…

0 Replies

AnonymousTRIAL

a year ago

N/A


a year ago

Referring to the nixpacks documents,

You may override the version of python by using the NIXPACKS_PYTHON_VERSION environment variable, by setting the version in a .python-version file, or by setting the version in a runtime.txt file

The default is 3.8, but you can just set the variable to 3.11, or make one of those files with just 3.11 in it


Build runs with Python 3.8 and not Python 3.11? - Railway Help Station