How to set Python minor version?

13 days ago

I set NIXPACKSPYTHONVERSION to 3.13.5 but it's still using 3.13.0. Is there a way to specify minor version?

$10 Bounty

2 Replies

13 days ago

02488d6b-8c14-4f63-a855-4a12942f0aef


nikhilraj6692
FREE

13 days ago

do you have a dockerfile


13 days ago

Hey, can you try switching the builder to Railpack and set the Python version using one of the ways outlined in the Railpack docs: https://railpack.com/languages/python#versions?


13 days ago

  • Use major.minor only
    In Railway Variables set:

    NIXPACKS_PYTHON_VERSION=3.13

    Redeploy and you’ll get the latest 3.13.x (that’s why 3.13.0 fell back).

  • If you really need 3.13.5
    Switch to a tiny Dockerfile instead of Nixpacks:

    FROM python:3.13.5-slim 
    
    WORKDIR /app 
    COPY requirements.txt . 
    RUN pip install -r requirements.txt 
    COPY . . 
    
    CMD ["gunicorn", "myproject.wsgi:application", "--bind", "0.0.0.0:8000"]