Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Convert .py to .exe with cmd

I was trying to convert my main.py to a exe file

I followed a tutorial on youtube i did it like it said

first open cmd in the folder
enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

then type in pip install pyinstaller
enter image description here
then type in like this pyinstaller --onefile main.py
but it does’nt convert it shows this
enter image description here

>Solution :

While Eyal’s solution is correct, there is an easier option. Just run this:

py -m PyInstaller --onefile main.py

It could also be python -m PyInstaller --onefile main.py depending on your system configuration.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading