How do I uninstall package after build?
Hey so I have a project that the pip files are out of sync which is now breaking one of my builds. I need to run a command to pip uninstall jwt and then pip install pyjwt. Can someone point me into the right direction to do this?
9 Replies
Project ID:
N/A
assuming your code is setup to use pyjwt, you should only need to replace jwt with pyjwt in your requirements.txt file and push a new build
so the issue is I'm using jwt but because some other package is using pyjwt there's a conflict
move jwt above the other package in your requirements.txt
they should be interchangeable though
ah dependency conflicts
I fixed the issue in my local by unstalling both and then installing jwt. So I feel like that what I have to do for the prod enviorment
but now I'm in the "it worked on my machine" loop 🤣
you can add those pip commands to your start command
separated by ;
so just to make sure start command like in the setting or in my Procfile?
depends, do you have anything set in the Railway setting?
if not then procfile