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
Percy
Percy•13mo ago
Project ID: N/A
Brody
Brody•13mo ago
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
valerie phoenix
valerie phoenix•13mo ago
so the issue is I'm using jwt but because some other package is using pyjwt there's a conflict
Adam
Adam•13mo ago
move jwt above the other package in your requirements.txt they should be interchangeable though
Brody
Brody•13mo ago
ah dependency conflicts
valerie phoenix
valerie phoenix•13mo ago
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 🤣
Adam
Adam•13mo ago
you can add those pip commands to your start command separated by ;
valerie phoenix
valerie phoenix•13mo ago
so just to make sure start command like in the setting or in my Procfile?
Adam
Adam•13mo ago
depends, do you have anything set in the Railway setting? if not then procfile
Want results from more Discord servers?
Add your server