Pip is not installing the most recent version of a library.
So I am trying to host a discord bot using interactions.py. They have V5.0.1 out but Railway will not install anything newer than 4.4.1. Here is the error if its helpful.
I can install 5.0.1 just fine on my machine so Im not sure why it wont work on railway.
14 Replies
Project ID:
460ee0b8-2b67-4840-b9df-a90eda47c734
You should consider upgrading via the '/opt/venv/bin/python -m pip install --upgrade pip' command.
⚠️ experimental feature
460ee0b8-2b67-4840-b9df-a90eda47c734
probably not on a new enough version of python or pip
How would I go about updating pip? Im quite new to railway still so I dont really know my way around completely yet.
if you're using a dockerfile you can just add a RUN command, if you aren't you'll need to try upgrading the nixpacks python version
So would you recommend me using a docker file then?
first try switching python versions https://nixpacks.com/docs/providers/python#setup
Python | Nixpacks
App source + Nix packages + Docker = Image
i'd suggest 3.9
Im just checking out the docs for interactions.py just to check if they have a requirement.
Alright so ill go for 3.10 then
yeah that makes sense
Alright perfect, that fixed everything. THank you very much
Have an amazing rest of your day!