pip install pyinstaller pyinstaller --onefile main.py pyinstaller main.spec pipreqs . pip freeze > requirements.txt