Reputation: 139
I have a NodeJS API and a Python script. I deployed it on Heroku. The API call runs the python scripts.
When I deployed the NodeJS API then type npm install
and all works fine but not for python. There is a lot of pip package to install, how can I make this work same as in my local environment?
In short, what is the "One command to install them all"?
Upvotes: 2
Views: 9737
Reputation: 682
You should define your requirements in a requirements.txt file and then
pip install -r requirements.txt
will install all at the same time.
You can create it by
pip freeze > requirements.txt
but should include only the packages you really use.
Upvotes: 6