Will you force your client to install python?

Eswar Abisheak
1 min readJul 5, 2021

.py to .exe in less than 30 sec

Hi, python developers always shipping your code as .py .
Let your next code be shipped as .exe

Here’s how to convert your python script to .exe on windows:

  1. Setup your python path in your system
  2. open your script directory and create a virtual environment
  3. activate your virtual environment
  4. run pip install pyinstaller
  5. after it installs then pyinstaller /path/to/yourscript.py
  6. Now a directory named dist is created there you will find the .exe file generated
  7. If there are any drivers or dependencies for your script to execute go through the below website to explore more.

Note: Python installed from the Windows store when not using virtual environments

Hope you liked it, feel free to ask your queries I am happy to answer them.

Github if you want to follow.

--

--