måndag 17 oktober 2022

How to convert a .py file into .exe

1. Run pip install pyinstaller globally and also in your venv.

2. While using venv, type pyinstaller --onefile -w 'filename.py' in your terminal while being in the same directory as your filename.py.

3. Your .exe etc are now created!


The above worked for me. I read long guides on how to do this but this seems to be enough.

Inga kommentarer:

Skicka en kommentar