How to add python dependencies to heroku node server?
I've solved it so:
- I created (If there is not) the file "requirements.txt" directly into the root of the entrypoint (index.js, in my case)
I manually added the libraries with the specific versions into the file, in my case like this:
requests==2.7.0beautifulsoup4==4.5.3
I created (If there is not) the file "runtime.txt" with with just one line: the python version i need, in my case:
python-2.7.14
I created the multibuildpacks with the two commands:
heroku buildpacks:set heroku/pythonheroku buildpacks:add --index 1 heroku/nodejs
Finally, I continued with the git commands:
git add requirements.txt runtime.txtgit commit requirements.txt runtime.txt -m "requirements"git push heroku master
You probably need to use multiple buildpacks. See:
In the Heroku Dev Center.