I made kinda google assistant and also a voice activation calculator in python

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Uzman Üye
Katılım
5 Eyl 2018
Mesajlar
183
Tepki puanı
14
Ödüller
5
Yaş
27
7 HİZMET YILI
If someone who knows how to do python, how should i compile that and make as an exe? i'm new and only learned in youtube XD
 
Onaylı Üye
Katılım
18 Ağu 2018
Mesajlar
63
Tepki puanı
10
Ödüller
7
7 HİZMET YILI
If u coding Python on Windows u probly installed Python and set the path for Win.
Now u want to install Pyinstaller via CMD.
1. Open CMD and execute a pip
pip install pyinstallerpip install pyinstaller
2. Now locate ur python script, copy the path and type the following in ur CMD
cd <path to ur script (C:/Users/desktop/script.py)>
(ignore the < >)
3. Now just type
pyinstaller --onefile pythonScriptName.py

Hit Enter and ur Executable file should be in the same Folder.
Sometimes the file gets put in a folder named "dist".
4. Good Luck
 
Son düzenleme:
Onaylı Üye
Katılım
22 Ocak 2022
Mesajlar
69
Tepki puanı
3
4 HİZMET YILI
If someone who knows how to do python, how should i compile that and make as an exe? i'm new and only learned in youtube XD
idk the others, but have u tried with auto py to exe ? u should google it 1st. cause the simple way to make it exe file from pyhton.
Post automatically merged:

If u coding Python on Windows u probly installed Python and set the path for Win.
Now u want to install Pyinstaller via CMD.
1. Open CMD and execute a pip
pip install pyinstallerpip install pyinstaller
2. Now locade ur python script, copy the path and type the follwing in ur CMD
cd <path to ur script (C:/Users/desktop/script.py)>
(ignore the < >)
3. Now just type
pyinstaller --onefile pythonScriptName.py
^- Ur File name goes here.

Hit Enter and ur Executable file should be in the same Folder.
Sometimes the file gets put in a folder named "dist".
4. Good Luck
yup, 1st add it to windows path and follow the rest of this step.
 
Onaylı Üye
Katılım
18 Ağu 2018
Mesajlar
63
Tepki puanı
10
Ödüller
7
7 HİZMET YILI
u want to install Pyinstaller via CMD.
If u made Py path known to Win u can execute the command in CMD. It should understand it.

[ execute sysdm.cpl This will show u the System Properties, under the Advanced tab und will find Environment Variables. There u can add Java JDK or for Python the compiler so u can execute stuff via CMD.]
 
Uzman Üye
Katılım
5 Eyl 2018
Mesajlar
183
Tepki puanı
14
Ödüller
5
Yaş
27
7 HİZMET YILI
If u coding Python on Windows u probly installed Python and set the path for Win.
Now u want to install Pyinstaller via CMD.
1. Open CMD and execute a pip
pip install pyinstallerpip install pyinstaller
2. Now locate ur python script, copy the path and type the following in ur CMD
cd <path to ur script (C:/Users/desktop/script.py)>
(ignore the < >)
3. Now just type
pyinstaller --onefile pythonScriptName.py

Hit Enter and ur Executable file should be in the same Folder.
Sometimes the file gets put in a folder named "dist".
4. Good Luck
yo man thanks! this helps but can i still make an py file into exe when it has this imports?
1648019638895.png

Post automatically merged:

u want to install Pyinstaller via CMD.
i did thanks! im just wondering if i can still make it into exe cause i used google api
 
Onaylı Üye
Katılım
21 Ara 2021
Mesajlar
64
Tepki puanı
6
Ödüller
5
Yaş
25
4 HİZMET YILI
Try some advanced courses from Udemy for example.
 
Seçkin Üye
Katılım
15 Ara 2021
Mesajlar
462
Tepki puanı
19
Ödüller
2
Yaş
38
4 HİZMET YILI
If u coding Python on Windows u probly installed Python and set the path for Win.
Now u want to install Pyinstaller via CMD.
1. Open CMD and execute a pip
pip install pyinstallerpip install pyinstaller
2. Now locate ur python script, copy the path and type the following in ur CMD
cd <path to ur script (C:/Users/desktop/script.py)>
(ignore the < >)
3. Now just type
pyinstaller --onefile pythonScriptName.py

Hit Enter and ur Executable file should be in the same Folder.
Sometimes the file gets put in a folder named "dist".
4. Good Luck
u can learn in yt or redite
 
Uzman Üye
Katılım
5 Eyl 2018
Mesajlar
183
Tepki puanı
14
Ödüller
5
Yaş
27
7 HİZMET YILI
Yes u can use it, might take awhile to put everything in one file, so dont worry it it takes awhile. You can add -w after --onefile if u dont want the console to show up after u execute the file. Only important if u dont need the console.
thats appreciated :))
 
Süper Üye
Katılım
31 Mar 2019
Mesajlar
621
Çözümler
2
Tepki puanı
58
Ödüller
8
Yaş
23
7 HİZMET YILI
it will cost you some money to make it
 
Süper Üye
Katılım
17 May 2022
Mesajlar
610
Tepki puanı
21
Ödüller
2
4 HİZMET YILI
you need to install the needed package for
it's called pyinstaller
read the documentation it's strict forward
 
Onaylı Üye
Katılım
31 Ara 2018
Mesajlar
59
Tepki puanı
0
Ödüller
7
Yaş
26
7 HİZMET YILI
you should search about github copilot its really really interesting and every question it'll do it for you.
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst