xxxxxxxxxx
print("what is ur monthly salary")
salary= int( input() )
asalary= salary * 12
dsalary= salary/30
hsalary=salary/160
print("hourly salary",hsalary)
print("daily salary",dsalary)
print("monthly aslary",salary)
print("anual salary", asalary)
input()
xxxxxxxxxx
# Option 1:
pip install auto-py-to-exe
auto-py-to-exe
# Option 2:
pip install pyinstaller
pyinstaller --onefile yourFile.py
# Option 3:
pip install nuitka
nuitka --one-file yourFile.py
xxxxxxxxxx
pip install pyinstaller
cd FullPathOfFile in cmd console
pyinstaller --onefile pythonScriptName.py
# a .exe file is created in the FullPathOfFile\dist
xxxxxxxxxx
#Convert .py to .exe don't use python ver 3.9 will not work recomment 3.8:
pip install pyinstaller
#to convert to a simple exe file the exe file will be in your dist folder
pyinstaller 'fileName.py'
#to convert to a onefile exe file the exe file will be in your dist folder
pyinstaller --onefile 'fileName.py'
to convert to a onefile exe file and the python window will not appear
pyinstaller -w --onefile 'fileName.py'
xxxxxxxxxx
pip install -U pyinstaller
# Open a command prompt/shell window
# Navigate to the directory where your .py file is located
# then build your app with the following command:
pyinstaller --onefile your_program.py
xxxxxxxxxx
Install pip using
pip install pyinstaller
in the directory of the source code file run
pyinstaller <file_name>.py
xxxxxxxxxx
#If You are Using Mac Install Wine And Download The Windows Command Line
#In windows Press Windows Key + R Key
#Type In Cmd
#Then Type The Commands Below
pip install pyinstaller
cd YourFilepath
pyinstaller Nameoffile.py --onefile -w
xxxxxxxxxx
put this in a .bat file or just run it in CMD
pyinstaller --onefile file_name.py