version of python in railway

What version of python does railway use? Did it default to 3.8 or does it use 3.9?
11 Replies
Rumon
Rumon•2y ago
3.8. You can override that. Check https://nixpacks.com/docs/providers/python.
lucy💫
lucy💫•2y ago
Alr ty hey so i added this NIXPACKS_PYTHON_VERSION = 3.9 to my env file and pushed it to github and all but it still failed deploying on railway saying this
#11 5.821 ERROR: Could not find a version that satisfies the requirement hikari-tanjun (from versions: 1.0.1a1, 1.0.1a2, 1.0.1a3, 1.0.1a4, 1.0.1a5)
#11 5.821 ERROR: No matching distribution found for hikari-tanjun
#11 5.825 WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
#11 5.825 You should consider upgrading via the '/opt/venv/bin/python -m pip install --upgrade pip' command.
#11 5.821 ERROR: Could not find a version that satisfies the requirement hikari-tanjun (from versions: 1.0.1a1, 1.0.1a2, 1.0.1a3, 1.0.1a4, 1.0.1a5)
#11 5.821 ERROR: No matching distribution found for hikari-tanjun
#11 5.825 WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
#11 5.825 You should consider upgrading via the '/opt/venv/bin/python -m pip install --upgrade pip' command.
am i doing it wrong? @msrumon
Rumon
Rumon•2y ago
You do that on Railway UI, not in your code.
lucy💫
lucy💫•2y ago
oh where would i do that at?
Rumon
Rumon•2y ago
lucy💫
lucy💫•2y ago
ohh okay ty
Rumon
Rumon•2y ago
Your solution will technically work as well, if you do it right. Better follow that doc (and revert back that change in your code).
lucy💫
lucy💫•2y ago
is it like this im assuming?
Rumon
Rumon•2y ago
Yep
lucy💫
lucy💫•2y ago
ayyy it worked, tysm :D
Rumon
Rumon•2y ago
No problem 🙂