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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Eswar Abisheak
Eswar Abisheak

Written by Eswar Abisheak

DSCVIIT lead || https://eswar.dev || HTB player || Competitive Coding

No responses yet

Write a response