generate a minimal requirements.txt that only lists the dependencies you need pip install pipreqs pipreqs [path to folder] e.g. pipreqs C:\Users\MyName\MyApp