get pip not found error

I am trying to deploy a fast api server on railway its been 1 day still not able to figure out can I get help

[phases.setup]
nixPkgs = ["python311Packages.fastapi", "python311Packages.uvicorn"]

[phases.build]
cmds = ["cd backend", "pip install --upgrade pip", "pip install -r requirements.txt"]

[start]
cmd = "cd backend && uvicorn main:app --host 0.0.0.0 --port $PORT"

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

6 months ago

Delete the nixpacks.toml file, and then set your root directory to /backend in the service settings.


get pip not found error - Railway Help Station