how to convert .py file to .exe

#if you dont have pyinstaller so run the cmd (winkey + r and write cmd and enter)
#now run the command bellow

	pip install pyinstaller
    
#now run this

	pyinstaller -w file_name.pyw
    #if you want the exe to be in one file without other folders 
    #change the code to: pyinstaller -w --onefile file_name.pyw
    
    
#change file_name to your file's name and if you aren't running the cmd in the
#same directory so instead of the file's name write the all path
#now you will have a directory named Build and in it you will find your exe file
#note - if your pyw filw has dependents so they will be in the file so dont remove them

4.11
9
Krish 100200 points

                                    Hold shift and right click where your python file is located
and then type

pyinstaller 'fileName.py'
to convert to a simple exe file the exe file will be in your dist folder

pyinstaller --onefile 'fileName.py'
to convert to a onefile exe file the exe file will be in your dist folder

pyinstaller -w --onefile 'fileName.py'
to convert to a onefile exe file and the python window will not appear

# {(NOTE: DON'T DO THIS IF YOU PROGRAM IS CONSOLE BASED)}
# {(IF YOU HAVE MADE A GAME USING PYGAME OR USING ANYTHING ELSE
#   WHERE CONSOLE IS NOT USED THEN IT'S FINE)}
# For more help you can click the link bellow
# It's 12 min tutorial of codewithharry 

4.11 (9 Votes)
0
4
8
Awgiedawgie 440220 points

                                    pip install pyinstaller

cd FullPathOfFile in cmd console
pyinstaller --onefile pythonScriptName.py
# a .exe file is created in the FullPathOfFile\dist

4 (8 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
turn .py into exe how to change .py to .exe how to convert py file into exe how to turn py file to exe py to exe online convertor can python be converted to exe is it possible to convert pythone to exe py to exe convertor online convert python to .exe file python convert .exe to pyc python file .exe to py python file .exe to py .exe python file to py exe to python converter online python converter exe online' python converter exe .pyw to .exe how to convert my python program into exe how to convert py file to exe converting .py to exe in python python .exe converter complie .py to exe with Easily convert .py to .exe cant convert python to exe make .py file to exe converting exe to py exe to pytohmn convert python to exe onine how to convert python file into exe turn python to exe online python to exec converter python code to exec py to exe decompile online convert .py to exe python turn code into exe how to make python to .exe if i convert a python file to exe will any computer work python transform exe to py python convert exe to py simple py to exe python 2.7 exe to py how to transform a .py to exe python py to exe simple how to convert .exe to .py python to exe converter download python to exre how to convert python to an exe python to exe installer how to convert a python to exe py to exe with import how to convert python to windows exe convert pypycode to exe py to exe convert converta python to exe Can I convert my python script from exe to py how do i convert python code to exe pythone to exe convwer py to exe how to convert a python file into exe how to convert py to exe command convert any python file to exe pyw file to exe convert python exe to source py to exe with library export .pyw to exe how to convert .pyw to exe how to convert .pyw script to exe how to make .py into exe convert .py a .exe hwo to convert your python code in executable exe convert py tot exe exe decompiler to py python to exe how to convetr py to 1 exe file easily convert python to exe convert python file and text file to exe how to convert exe to py using python python3.4 to exe convert py to exe with py2exe how to convert exe to py Convert Python Script to .exe how to transfer py to exe and run it python file to .exe change python file to exe turn pyc into exe how to convert python script into exe how to .py to .exe convert python file into executable python file to exe convertor python to exe gu python to exe easy python convert to executable what are the ways to turn python to exe how to turn from python to exe py to exe code how to convert py to exe oof a commandline program python files into exe ypthon file into exe turn a python script into an exe executable python to exe how to convert ..py into .exe py to exe one file python file to exe with libraries python code to exe in windows convert python to exe windows python to ex pyton to exe py to .exe download py to exe python to exr cant convert py to exe how to convert exe to .py how to convert a basic python script to .exe python to exe file online turn py code to exe convert python code to exe online python interactive to exe converting python file to exe turn python to exe PHYTHON TO EXE convert pytohn to exe script python to exe Turn python into .exe python convert py to exe how to convert a python file to an exe bundle pyc to exe python Tunr .py into an exe how to convert pytohn script to exe from python to exe convert exe file to python python exe to pyc python type automatically to exe py to exe online py to .exe online how to covert python to exe online python to .exe converter onlie python to exe converter how to export py files to exe python library to exe convert python .exe to .py change py file to exe how convert python to exe convert pyc to exe convert py file to exe online convert py to exe pypy to exe turn python script to exe py to exe converter online create .py to exe how to convert py into exe how to turn py file into exe convert python to standalone exe how many ways can we convert py to exe python 2 to exe how to convert .py to .exe manually how to convert a python project to an exe how to convert a python project to an exr convert python project to exe make .py to exe python to exe conrverter converting py file to exe with import py to exe pypi py to exe how to turn .py into executable convert python to exe with window extension convert python file to exe with a text file how do i turn .py into .exe python exe convert how to turn a .py into a .exe converting .py to .exe in python3 convert a py file to exe How can I convert a .exe to .PY for Python? convert python py file to exe file convert py to exe py2exe how to convert the python file to exe file how to convert a .py file to .exe convert py file to exe file making py file to exe python script to exe program how to convert py to exe using py2exe exe to py online how to convert exe file to py convert py in exe how to convert python program into exe file convert a python file to exe how to convert a python program into exe file turn .py to an exe exe to .py .exe to py how to make py to exe convert a python program to exe python script with data to exe Python turn python file into exe exe to py code .pyc to exe python .exe file to python into exe file python script to exe file python .py to .exe how to convert .py to .exe in windows 10 how to generate py to exe how to make a py to exe how to turn python code into exe create py to exe convert exe to py convertir .py to exe ne ligne py2exe convert py to exe python to exe online converter online py to exe python to exe online converter program py make file to exe .py convert to .exe online converter .py to .exe pyhton file to exe how to convet python file to .exe convert online py to exe how to convert .py to .exe in python Convert Python Script to .exe File Exe to py converte Exe to py converter online how to convert python file in exe pyw to exe online py to exe python 2.7 convert python code to .exe format how to convert a python file into a single exe file .py to exe online converter python scripts to exe conver py files to exe online conver py files to exe how to convert a py file to exe file how to convert your Python into a executable turn python file to exe best ways to convert python file to exe best way to convert python file to exe how to convert exe to python source code exe to py converter convert python to .exe exe to python code How to turn a python file into an exe file turn a .py into an exe how to change a python file to exe python to exe convertor convert python file in exe online convert python into executable py program to exe online .py to .exe converter make py to exe .py to .exe. pyhton to ex Convert py into exe from .py to exe windows py to exe how to turn py into exe .py to exe online how to convert python code to executable .exe program how to convert a py file to exe python3 to exe online py to exe converter convert a py to exe in a script how to convert the py to exe in a script convert python to exe in windows how to make a py file to exe turn file into exe python how to convert a py to .exe how to turn python file into exe software to convert python file in exe how to convert .py file to exe how to turn py to exe command to py to exe how to change py to exe how to turn py file into .exe py to exe for windows how to make .py to exe how to convert python file to exe file python to exxe pyc to windows exe pyc to exe all py to exe converter .py to .exe file converter download convert .py into .exe how to covert.py to .exe make .py into exe convert py to exe with instalation software transform py to exe .py to .exe converter online make .py to .exe .py convert in .exe pytohn convert in exe with python cmd python convert in exe how to turn an exe back into a python file exe converter to python ayto py to exe phyton to exe turn py file into exe python module to exe how to change the .py to .exe py converted to exe convert py files to exe how to convert .py to exe py folder to exe professional way to convert py to exe convert python file to exe windows convert python application to exe file python to exe onlin python to exe library convert python script to executble converting py to exe turn python script into .exe how to turn python to exe python app to exe file type py to exe py to exe file converter python application to exe how to turn .py to exe conver py to exe py file to exe file python to .exe converter convert python file to exe online convert python file into exe py to exe converter online python to exe program convert py to exe online install converter py to exe convert py to exe install windows how to turn .py to .exe how to convert a py to exe exe file from py import py to exe online converter import py to exe how to convert python file to .exe python to windows exe convert python script to exe online convert python script into exe Python 3.7 to exe make python code into exe convert .py to .exe online how convert py file to exe file. python to exe converter downlaod how to convert .py to .exe in windows py to exe download windows py to exe download python to exe guide py exe to py convert python code to executable how to python to exe online py to exe program python to exe converter software Python to exe ap download Python to exe download py into exe .exe to .py how to py to exe python files to exe convert exe to python source code python file to exe online how to convert exe to python how to convert .exe to python code python to exe windows python code to exe online change python to exe python ot exe how to confvert py to exe how to convert a python file into an .exe .py to .exe online converter how to convert a python script to a exe python convert to exe windows py to exe in python script py to exe in python py to exe with python 3.8 python to exe with cython online python to exe change .py to exe how to convert python files to .exe convert a python code to exe python into exe convert pyw to exe python code into exe turn python into exe convert python to executable turn python program into exe exe to python file convert python file to executable online python to exe converter auto py to exe cmd creating an exe file python run python to exe python as exe py to exe online without pyinstaller python how to open auto py to exe with older versiomn python to exe \ python to exe pycharm python convert exe to py online export python code into exe how to convert py on exe how to convert a pyw to an exe py to exe online converterù python 3.8 convert python to exe convert python scripts to exe py.exe pip install auto-py-to-exe auto py to exe install libraries how to make python script to application auto-py-to-exe documentation how to create a python windows exe file auto to py exe make python files executable how to make a python script into an exe file py file to exe file conversion auto py exe download make exe file at python tkinter project convert folder py to exe export python file to exe auto py to exe from venv create executable python script for windows .exe with auto-py-to-exe compile python code into an executable pyw to exe turn a python file into an exe how to convert python file into executable how to convert a python file into an executable py to exe no requred python 3 create an exe how to run converted exe of pythonscript how to convert a pyw file to exe convert code to exe how to convert a .py to .exe how to convert a pyw to exe convert py to exe python 2.7 py to .exe converter execute python in an exe convert exe to python convert python program to .exe auto-py-to-exe install error convert py to exe file compile python to exe online auto py to exe download .py to exe converter python to exe converter online how to make exe file python py to exe online converter py exe python to exe with gui .py to exe converter online python how to open auto-py-to-exe python exe to py* python exe to py pip install auto-py-to-exe issue how to exporpt python to exe how to make a py in .exe py to exe command py to exe online tool python file to exe converter online exe file convert to python exe file to python auto py to exe tutorial python 2 exe how to compilep python to exe convert python to exe online auto py to ece convert a whole python module to exe python executable file online how to convert py to exe can exe file be converted to python what happens when .py file is converted to exe how to convert python files to exe files auto py to exe converter comple python to exe auto-py to exe download python py file to exe how to make exe file in tkinter project at python how to export a py to exe how convert py to exe make exe i python how to install auto-py-to-exe convert python project to exe with importing mudle how to convert py to exe without pyinstaller auto-py-to-exe console convert python wheel to exe py auto py to exe tool how to change python file to exe convert .py to exe python to executable converter how to create exe from py how to make a python file as exe python to exe converters how to make python into a .exe make an executable with visual studio python how to get details of a .exe file using python python -> .exe pythonto exe how to create executable python file from py to exe exe to py compile python code to c executable file create python executable online what do you do when you turn python file .py to .exe .py to .exe converter convert .py to .exe how to make python code into exe python into executable convert pyton to exe command convert python file to executable file creating python executable file conerting .py to .exe using pyinstaller export py to exe transform py to exe windows how to convert .py file to .exe pyhtib to exe how to create exe file in python compile python script into executable python file exe convert python scripts into executable windows programs how to make a python exe how to turn a .py file to a exe python project convert as exe how to make executable from python compile to exe python format python code to exe executable python How to make python an exe file how to convert a .py file to a .exe file how to export python file to exctuable py convert to exe how to convert .py to executable how to pack python to exe convert any program to exe transform python to exe How to convert python app how to configure python to exe how to convert code to exe without pip how to make exe file of python pyhton to exe compile python to executable convert python fie to exe onefile converter py to exe how to turn .py in exe exe to python converter python to exe converter gui how to make python run a .exe how do you export a py file to exe how to turn a python script into an executable how to make exe from many python file how to make exe from python code how to compile .py to exe how to convert .py file to .exe file create exe file python 3 write executable in python how to turn .py files into exe how to install auto-py-to-exe in python38 .py to.exe file add data path to auto py to exe python code to exe file how to create executable from python script how to make a .py file executable in windows python program to exe create a exe from python python pack to exe python script to convert py to exe make your python script executable how to convert .py flie to .exe file on python 3.8.6 python to exe file converter convert .py to .exe in python 3.8 making a whole python project executable make python file executable windows python to exe tutorial auto py to exe with images tkinter auto py to exe with images python installer executable how to make python file executablew py to exe using pyinstaller .py to exe using logo include in path with auto py to exe auto py to exe modules how to create and exe file out of a python code turn python exe to scri[t make python an executable py auto exe how to compile python file to exe how to make exe with python how to run python executable how to convert python projeect to exe that runs on on any computer create pythin executabe to work on all windows version make exe python make py into exe auto py to exe add version file turn python script into app how to convert .py to .exe how to turn a py file into an exe turn py into save exe compile python script to exe compile py to exe how to make an exe from python python to an exe file how to make executable file python compiler python to exe python code to app how to build python to exe export python to.exe how to package python to exe How to make Python py into exe build python file to exe how to make a python executable on windows how to make exe file of python program create an exe python file compile python scrt to exe why should i use a executable file in python python run exe in windows LIBRARY TO BUILD .EXE PYTHON python create an executable run python script as exe make a windows executable python how to turn python software to exe how to convert python application to exe converty python file to exe how to export a python file to exe python to exer convert python 3.7 to exe windows run executable .exe from python script pyinstaller exe run python script how to turn python script to exe python code to exe converter how to make a python program into an app python script to executable build exe with python easy way to convert your python script to executable create exe for python script how to export a python app how to cahnge python file to exe how to convert .exe file to python turn your python code into an executable py to exe pip how to save python program as exe insert a python script to an executable .py to .exe python how to convert python files to exe python exe compiler make a python script executable how to make an .exe in python python execuatable file how to change python to exe python file to exe converter make a python file exe make a python file ee tkinter to exe pyinstaller how to execute pythonfile onto exe files as executible windows python how to convert python script to exe py to exe python 3.7 python to .exe\ python to exe converter linux turning a python script into an executable python file to exe converter run on any computer make python script executable windows from ubuntu make python script executable windows in ubuntu py to exe in linux python to exeutabes how to make a python program executable make .py to .exe in python 3.7.9 make .py to .exe on python 3.7.9 build python executable compile python into exe pip compile python into exe pip4 howmto make exef rom pythonm create python executable file how to make a python project executable python file to exe file converter python make an executable file python how to make an executable how to create an exe file from python an you convert a exe to python python create executable how to create executable python code python exe creation make python to excutable how to make python script executable for other machines .py to exe conversion in python softwere how to convert python to exe without pyinstaller make a exe file python how to convert python code into an app python making executable python compuiler to exe exe to python gui py to exe installler how to make python file a exe best way to convert python script to exe make .exe from python py to exe python 3.8 how to convert python to exe file how to create exe from python file how to turn python code into .o file python change to exe file how to make my python code into exe install py to exe python make executable windows file python to exe convert .py to .exe on linux python make program to exe py to exe linux python .exe file app for converting python to exe python 3.8 to exe tools.exe make exe file of python onefile online make exe file of python onefile make exe file of python how to create executable file of python code python run executable how to create an exe file in python auto py to exe with pip packages python setup.py to exe how to make python file to exe online app to convert python file to exe python make executable how to make a python file an exe how to compile a python code to .exe how to turn a python file into an application excuatble file from python open .exe file with python in the py file code for making an exe file for python how to make python executable in cli build python program to exe convert python script to exe how to export a python program to exe python executable file how to make exe file from python export single python file to exe python through how to make exe file how to export python to exe python program to executable file why do we create a python to exe file puupeteer python to exe python build executable python create executable with dependencies how to convert python file to exe step by step packaging python and compile exe convert python to exe file python how to run an executable from a python script python compile into exe compile python into executable how to turn a python file to an exe how to create an icon to my python file that i converted into exe how to make a python file an executable how to turn your python files into an app making python into exe python project to exe python open run exe file how to open excutalble file with python console how to create exe programs in python python to exe software how to make an installer for python-exe execute file qpython as executable convert python script to executable convert python code to exe how to turn python into standalone executable how to turn python into an executable python exe converter how to make a python script executable from command prompt executable python script python to exe with libraries how to convert python file to exe in windows 10 convert python app to exe how to convert exe file to python file how to make a .exe file from python compile executable python expory python program how to make exe in python how to convert python gui to exe python code to exe how to run a exe file python python to exe file compile a python program to exe python how to compile t oexe download and run a executable in python python how to open a file as executable create an exe app with python how to turn a python file into an executable python execute auto-py-to-exe create .exe from python how to create exe in python how to create python script into an application how to make your python file an exe compile python into app create an executable for python how to make exe from python convert py to exe python 3.8 how to convert a file to exe python python to executable make python into exe python to .exe how to run my python program as exe file python create .exe file how to make exe file for python create exe file from python make a python executable how to turn a python code into an app build python to exe how to make a python file into an exicutable how to make python script as executable how to make an exe file in python how to send python .exe file run python file as executable\ create executable python where to find python executable files how to turn your python code into an app convert python to exe how to make .exe file in python how to create exe files from python files make an exe file from python create r exe in python auto python to exe python compile to exe online python compiler to exe convert python program to executable how to make a python executable python to exe files how to make a python script an exe make python script executable windows how to make python script executable python built into executable python convert one exe file python gui to exe python convert to exe file how to turn python code into an executable how to turn a python script into an exe converting python script to executable error converting python script to executable compile python code to exe make an exe from python pyinstaller tkinter to exe python file to exe how to make an executable file from python script make exutable python onlibe how to make python file executable how to make exe files from python files how to convert python code to exe how to make exe file with python make python script executable how to convert a python file to exe python script to exe run python script as executable windows exe from python code making exe from python code python create executable file make python executable set python exe to use pyinstaller how to turn a python file into an exe installing exe python command line how to python compied file into exe how to use pyinstaller to create exe for script how to install setup.py file into exe compiling python to exe how to create exe with python installer and extra library export python to exe convert python to exe one file py file to exe python generate exe file .py a .exe Converting Python scripts into executable programs - Windows auto py to exe python 3.8 set a python file to a executable making python packages exetuble windows exe to code python python script to executable with pyinstaller how to convert any python file to .exe py to exe online turn py to exe convert to exe python making an executable in python python 3.8 convert to exe python convert to exe how to convert py files to exe create a exe form py python auto py to exe pythond script exe create exe file in python with all dependencies how does a python to exe converter work exe to a python program python export to exe create executable file python file linux auto-py-to-exe python exe file convert py to exe pyinstaller how to compile python to exe how to build python executable python biuld exe python creat a exe python to exe online python executable Pyhon to exacutable python create exe file how to create a python executable file python py to exe auto py to exe how to make python executable auto-py-to-exe with python3 how to save your python script as an exe how to compile a python script to exe convert python file to exe how to convert python to exe auto-py-to-exe convert to exe with requirements how to create an executable file in python py.exe in windows build exe from py file py to exe windows convert py to exe in linux python build exe convert python code to .exe convert py to exe python 3.7 build python executable for windows convert py to exe convert python to .exe with addons turn python script into exe python to exe onlinew python create exe .py to .exe py to exe application py to exe make exe from python how to make a python file executable see the exe of python code how does .py to .exe converter work how does .py to .exe conver work making an exe from python create python executable py to exe converter pyinstaller py to exe .py to exe turning python into exe export .py to exe pip install auto py to exe generate exe python online python to exe converter create exe from python python code for exe converting python script to executable files how to compile python code into executable\ how to turn python into exe python exe to exe converter converting python to exe create exe file for python compile python to exe python to exe
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source