2👍
You should have a requirements.txt
with your webapp. Then do pip install -r requirements.txt
when you deploy.
If you did not make such a file, you can create one later by running pip freeze > requirements.txt
. But beware that there might be some packages there that are not needed, if you installed other stuff on the side, so be prepared to manually screen the file.
If you work with multiple webapps you may also need to containerize your requirements (here’s why). Two options: Docker or virtualenv. If you don’t know what Docker is and don’t have some time on your hands I suggest you go with Virtualenv for now.
Source:stackexchange.com