Konuyu Oyla:
  • Toplam: 0 Oy - Ortalama: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Python 3.6 .exe yapma
#1
Python 3.6 ile yazdığım programı nasıl .exe haline getirebilirim.?
Ara
Cevapla
#2
benim favorim PyInstaller, tkinter ve normal konsol scriptlerinde sorunsuz, fakat kivy kodlarını da derleme özelliğine sahip olmasına rağmen biraz daha uğraştırıcı. Ama sıradan scriptleri ve tkinter ile görselleştirdiğin scriptleri exe yapacaksan kullanımı gayet basit, hem python2 hem de python3 desteği var.

kurulum:
Kod:
pip install pyinstaller

exe yapma:
--onefile parametresi tek bir exe dosyası yapmak için,
--noconsole veya --windowed parametresi exe çalışınca konsol açılmaması için
--name dosya adı
--icon ico uzantılı uygulama simgesi için.

Tabi bütun bunlar isteğe göre, istersen direkt olarak
Kod:
python -m PyInstaller my_script.py
yazarak da exe yapabilirsin

parametreler ile beraber,
Kod:
python -m PyInstaller --onefile --noconsole --name=deneme --icon=myicon.ico my_script.py

komutu çalıştırdıktan sonra bir takım işlemler bitince exe dosyasını dist klasörü içinde bulabilirsin.
Turbobit Premium Link Çeviri | Turbobit Link Generator | http://turbobit.qpython.club
Cevapla
#3
Yeri gelmişken sorayım. Elimde exe uzantılı dosya olsun diyelim. Bunu pyinstaller ile oluşturmuş olduğum dosyanın içerisine nasıl gömebilirim acaba ? google vs.. baktım da bulamadım (muhtemelen eksik ingilizcem yüzünden).
Ara
Cevapla
#4
pyinstaller çalıştırdıktan sonra .spec uzantılı dosya oluşur, o dosyanın içinden gerekli eklemeler yapılıyor fakat ben tek dosya halinde iç içe geçirilmiş exe denemedim. Terminalden de "--add-data dosya.exe;. " parametreleri yazılarak yapılacağı belirtiliyor, artık denemek gerek.
Turbobit Premium Link Çeviri | Turbobit Link Generator | http://turbobit.qpython.club
Cevapla
#5
.exe yaparken cmd çoğu yerde warnıng verdi. Birde programda kullandığım resimler programda gözükmüyor. Resimlerin gözükmesi için bir şey varmı?

(.exe yapmaya çalıştığım modül wx modülü)


- CMD EKRANI:

PHP Kod:
C:\Users\casper\Desktop\ODP dosya>python -m PyInstaller --onefile --noconsole --name=deneme dosya.py
187 INFO
PyInstaller3.4
187 INFO
Python3.6.4
203 INFO
PlatformWindows-10-10.0.10240-SP0
203 INFO
wrote C:\Users\casper\Desktop\ODP dosya\deneme.spec
218 INFO
UPX is not available.
218 INFOExtending PYTHONPATH with paths
['C:\\Users\\casper\\Desktop\\ODP dosya',
 
'C:\\Users\\casper\\Desktop\\ODP dosya']
218 INFOchecking Analysis
218 INFO
Building Analysis because Analysis-00.toc is non existent
218 INFO
Initializing module dependency graph...
218 INFOInitializing module graph hooks...
234 INFOAnalyzing base_library.zip ...
9625 INFOrunning Analysis Analysis-00.toc
9625 INFO
Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by C
:\Users\casper\AppData\Local\Programs\Python\Python36\python.exe
9687 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python.exe
9734 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python.exe
9765 WARNING
lib not foundapi-ms-win-crt-locale-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python.exe
9812 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python.exe
9843 WARNING
lib not foundapi-ms-win-crt-math-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python.exe
9906 WARNING
lib not foundapi-ms-win-crt-convert-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\VCRUNTIME140.dll
9937 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\VCRUNTIME140.dll
9984 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\VCRUNTIME140.dll
10015 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\VCRUNTIME140.dll
10062 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\VCRUNTIME140.dll
10406 WARNING
lib not foundapi-ms-win-crt-convert-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python36.dll
10445 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python36.dll
10477 WARNING
lib not foundapi-ms-win-crt-time-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python36.dll
10523 WARNING
lib not foundapi-ms-win-crt-environment-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python36.dll
10555 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python36.dll
10602 WARNING
lib not foundapi-ms-win-crt-locale-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python36.dll
10648 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python36.dll
10680 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python36.dll
10711 WARNING
lib not foundapi-ms-win-crt-process-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python36.dll
10758 WARNING
lib not foundapi-ms-win-crt-conio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python36.dll
10789 WARNING
lib not foundapi-ms-win-crt-filesystem-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python36.dll
10851 WARNING
lib not foundapi-ms-win-crt-math-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\python36.dll
10883 INFO
Caching module hooks...
10898 INFOAnalyzing C:\Users\casper\Desktop\ODP dosya\dosya.py
11805 INFO
Loading module hooks...
11805 INFOLoading module hook "hook-encodings.py"...
12039 INFOLoading module hook "hook-pydoc.py"...
12039 INFOLoading module hook "hook-sqlite3.py"...
12242 INFOLoading module hook "hook-xml.py"...
13039 INFOLooking for ctypes DLLs
13039 INFO
Analyzing run-time hooks ...
13055 INFOLooking for dynamic libraries
13117 WARNING
lib not foundapi-ms-win-crt-convert-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_ssl.pyd
13164 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_ssl.pyd
13195 WARNING
lib not foundapi-ms-win-crt-time-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_ssl.pyd
13242 WARNING
lib not foundapi-ms-win-crt-environment-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_ssl.pyd
13289 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_ssl.pyd
13320 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_ssl.pyd
13367 WARNING
lib not foundapi-ms-win-crt-utility-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_ssl.pyd
13399 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_ssl.pyd
13430 WARNING
lib not foundapi-ms-win-crt-conio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_ssl.pyd
13492 WARNING
lib not foundapi-ms-win-crt-filesystem-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_ssl.pyd
13562 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\pyexpat.pyd
13602 WARNING
lib not foundapi-ms-win-crt-environment-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\pyexpat.pyd
13642 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\pyexpat.pyd
13683 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\pyexpat.pyd
13726 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\pyexpat.pyd
13790 WARNING
lib not foundapi-ms-win-crt-convert-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_hashlib.pyd
13831 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_hashlib.pyd
13874 WARNING
lib not foundapi-ms-win-crt-time-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_hashlib.pyd
13914 WARNING
lib not foundapi-ms-win-crt-environment-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_hashlib.pyd
13966 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_hashlib.pyd
14006 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_hashlib.pyd
14050 WARNING
lib not foundapi-ms-win-crt-utility-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_hashlib.pyd
14090 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_hashlib.pyd
14130 WARNING
lib not foundapi-ms-win-crt-conio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_hashlib.pyd
14206 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_lzma.pyd
14246 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_lzma.pyd
14310 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_socket.pyd
14350 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_socket.pyd
14418 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\select.pyd
14490 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_bz2.pyd
14530 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_bz2.pyd
14570 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_bz2.pyd
14603 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_bz2.pyd
14634 WARNING
lib not foundapi-ms-win-crt-math-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_bz2.pyd
14696 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\unicodedata.pyd
14744 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\unicodedata.pyd
14775 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\unicodedata.pyd
14837 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_sqlite3.pyd
14884 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_sqlite3.pyd
14915 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\_sqlite3.pyd
14978 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\siplib.cp36-win_amd64.pyd
15009 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\siplib.cp36-win_amd64.pyd
15040 WARNING
lib not foundapi-ms-win-crt-utility-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\siplib.cp36-win_amd64.pyd
15118 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\_core.cp36-win_amd64.pyd
15165 WARNING
lib not foundapi-ms-win-crt-time-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\_core.cp36-win_amd64.pyd
15212 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\_core.cp36-win_amd64.pyd
15243 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\_core.cp36-win_amd64.pyd
15290 WARNING
lib not foundapi-ms-win-crt-math-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\_core.cp36-win_amd64.pyd
15368 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\sqlite3.dll
15415 WARNING
lib not foundapi-ms-win-crt-time-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\sqlite3.dll
15446 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\sqlite3.dll
15493 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\sqlite3.dll
15525 WARNING
lib not foundapi-ms-win-crt-utility-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\sqlite3.dll
15571 WARNING
lib not foundapi-ms-win-crt-math-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\DLLs\sqlite3.dll
15728 WARNING
lib not foundapi-ms-win-crt-filesystem-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxmsw30u_core_vc140_x64.dll
15790 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxmsw30u_core_vc140_x64.dll
15837 WARNING
lib not foundapi-ms-win-crt-math-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxmsw30u_core_vc140_x64.dll
15884 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxmsw30u_core_vc140_x64.dll
15931 WARNING
lib not foundapi-ms-win-crt-convert-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxmsw30u_core_vc140_x64.dll
15962 WARNING
lib not foundapi-ms-win-crt-environment-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxmsw30u_core_vc140_x64.dll
16009 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxmsw30u_core_vc140_x64.dll
16056 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxmsw30u_core_vc140_x64.dll
16103 WARNING
lib not foundapi-ms-win-crt-utility-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxmsw30u_core_vc140_x64.dll
16150 WARNING
lib not foundapi-ms-win-crt-time-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxmsw30u_core_vc140_x64.dll
16228 WARNING
lib not foundapi-ms-win-crt-multibyte-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\MSVCP140.dll
16275 WARNING
lib not foundapi-ms-win-crt-convert-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\MSVCP140.dll
16322 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\MSVCP140.dll
16368 WARNING
lib not foundapi-ms-win-crt-time-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\MSVCP140.dll
16400 WARNING
lib not foundapi-ms-win-crt-environment-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\MSVCP140.dll
16431 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\MSVCP140.dll
16478 WARNING
lib not foundapi-ms-win-crt-locale-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\MSVCP140.dll
16509 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\MSVCP140.dll
16556 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\MSVCP140.dll
16587 WARNING
lib not foundapi-ms-win-crt-filesystem-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\MSVCP140.dll
16619 WARNING
lib not foundapi-ms-win-crt-utility-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\MSVCP140.dll
16665 WARNING
lib not foundapi-ms-win-crt-math-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\MSVCP140.dll
16761 WARNING
lib not foundapi-ms-win-crt-convert-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_net_vc140_x64.dll
16790 WARNING
lib not foundapi-ms-win-crt-time-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_net_vc140_x64.dll
16837 WARNING
lib not foundapi-ms-win-crt-environment-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_net_vc140_x64.dll
16884 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_net_vc140_x64.dll
16915 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_net_vc140_x64.dll
16962 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_net_vc140_x64.dll
17087 WARNING
lib not foundapi-ms-win-crt-convert-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_vc140_x64.dll
17118 WARNING
lib not foundapi-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_vc140_x64.dll
17165 WARNING
lib not foundapi-ms-win-crt-time-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_vc140_x64.dll
17196 WARNING
lib not foundapi-ms-win-crt-environment-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_vc140_x64.dll
17243 WARNING
lib not foundapi-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_vc140_x64.dll
17274 WARNING
lib not foundapi-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_vc140_x64.dll
17321 WARNING
lib not foundapi-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_vc140_x64.dll
17353 WARNING
lib not foundapi-ms-win-crt-utility-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_vc140_x64.dll
17400 WARNING
lib not foundapi-ms-win-crt-filesystem-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_vc140_x64.dll
17431 WARNING
lib not foundapi-ms-win-crt-locale-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_vc140_x64.dll
17477 WARNING
lib not foundapi-ms-win-crt-math-l1-1-0.dll dependency of C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\wx\wxbase30u_vc140_x64.dll
17493 INFO
Looking for eggs
17493 INFO
Using Python library C:\Users\casper\AppData\Local\Programs\Python\Python36\python36.dll
17493 INFO
Found binding redirects:
[]
17542 INFOWarnings written to C:\Users\casper\Desktop\ODP dosya\build\deneme\warn-deneme.txt
17706 INFO
Graph cross-reference written to C:\Users\casper\Desktop\ODP dosya\build\deneme\xref-deneme.html
17777 INFO
checking PYZ
17778 INFO
Building PYZ because PYZ-00.toc is non existent
17779 INFO
Building PYZ (ZlibArchiveC:\Users\casper\Desktop\ODP dosya\build\deneme\PYZ-00.pyz
19376 INFO
Building PYZ (ZlibArchiveC:\Users\casper\Desktop\ODP dosya\build\deneme\PYZ-00.pyz completed successfully.
19485 INFOchecking PKG
19485 INFO
Building PKG because PKG-00.toc is non existent
19485 INFO
Building PKG (CArchivePKG-00.pkg
28666 INFO
Building PKG (CArchivePKG-00.pkg completed successfully.
28698 INFOBootloader C:\Users\casper\AppData\Local\Programs\Python\Python36\lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw.exe
28698 INFO
checking EXE
28698 INFO
Building EXE because EXE-00.toc is non existent
28698 INFO
Building EXE from EXE-00.toc
28698 INFO
Appending archive to EXE C:\Users\casper\Desktop\ODP dosya\dist\deneme.exe
31495 INFO
Building EXE from EXE-00.toc completed successfully.

C:\Users\casper\Desktop\ODP dosya
Ara
Cevapla
#6
bir önceki yorumda belirttiğim gibi resimleri --add-data parametresiyle eklemeyi denedin mi? Tabi eğer tek bir dosya olması şartsa, eğer öyle bir koşul gerekli değilse exe ile aynı dizin içerisinden gerekli dosyaları çağırabilirsin. Bir aralar simple server exe yapmıştım şimdi aklıma geliyo, onda da bazı resim script vs gibi harici çalıştıracağım dosyaları exe dışında tutmuştum, daha sonra winrar ile exe oluşturarak tek bir klasör halinde program files içine attırıp kısa yolu da masaüstüne yerleştirme işmeli yapmıştım Smile Ama dediğim gibi parametre veya spec dosyasına ekleme yapılarak harici dosyaları ekleme seçenekleri olduğunu biliyorum fakat kullanmadım, bu yüzden tam bir çözüm oluşturacak cevap şu anlık bende yok, müsait bir zamanda denemedikçe...
Turbobit Premium Link Çeviri | Turbobit Link Generator | http://turbobit.qpython.club
Cevapla
#7
Çok özür dilerim, maydanoz olacam konuya ama küçük bir soru:

Bir .py scriptini bu şekilde exe yapınca, başka pc de python olmasa bile exe halinde olduğundan işlem görür demi?
Yada benim söylediğim şekilde yapmanın bir yolu var mı?
Ara
Cevapla
#8
Eğer başka bilgisayarlarda çalışmayacaksa zaten exe yapmanın mantığı yok, zaten pyinstaller modülü de onun için gereken ne varsa paketlemeyi yapıyor. Yani py2 kullanıyosan ilgili dll dosyalarını vs vs, ya da kodun içine import ettiğin modülleri...
Turbobit Premium Link Çeviri | Turbobit Link Generator | http://turbobit.qpython.club
Cevapla
#9
gecemor
İyimiş. Teşekkürler, ben o zaman pyinstaller i bi araştırayım.
Ara
Cevapla
#10
(02-01-2019, Saat: 23:29)gecemor Nickli Kullanıcıdan Alıntı:  benim favorim PyInstaller, tkinter ve normal konsol scriptlerinde sorunsuz, fakat kivy kodlarını da derleme özelliğine sahip olmasına rağmen biraz daha uğraştırıcı. Ama sıradan scriptleri ve tkinter ile görselleştirdiğin scriptleri exe yapacaksan kullanımı gayet basit, hem python2 hem de python3 desteği var.

kurulum:
Kod:
pip install pyinstaller

exe yapma:
--onefile parametresi tek bir exe dosyası yapmak için,
--noconsole veya --windowed parametresi exe çalışınca konsol açılmaması için
--name dosya adı
--icon ico uzantılı uygulama simgesi için.

Tabi bütun bunlar isteğe göre, istersen direkt olarak
Kod:
python -m PyInstaller my_script.py
yazarak da exe yapabilirsin

parametreler ile beraber,
Kod:
python -m PyInstaller --onefile --noconsole --name=deneme --icon=myicon.ico my_script.py

komutu çalıştırdıktan sonra bir takım işlemler bitince exe dosyasını dist klasörü içinde bulabilirsin.

hocam merhabalar ben pip yüklemek istiyorum ancak python konsolda şöyle bi hata aldım büyük ihtimalle bir şeyi yanlış anladım
bir de get-pip dosyasıyla yükleniyomuş sanırım videolarda izlediğim kadarıyla bu şekilde yapıyolar ancak ben beceremedim nasıl yükleyebilirim acaba
Ara
Cevapla

{lang: 'en'}


Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
  15gb .myd uzantılı dosya python ile okutma perry 1 1,196 27-11-2022, Saat: 17:59
Son Yorum: perry
Question Python Dili Soru & Cevap gecemor 1,493 1,075,068 08-11-2022, Saat: 11:18
Son Yorum: Antonyobanderas
  GÜNCEL Python request , c# request e göre çok yavaş ne yapabilirim perry 12 3,088 28-09-2022, Saat: 20:27
Son Yorum: krast
  YENİ Python Pyqt5 memory leak sorunu perry 3 1,378 28-09-2022, Saat: 11:33
Son Yorum: gecemor
  YENİ PYTHON ads approval CaglarDevv 2 1,509 04-07-2022, Saat: 01:23
Son Yorum: CaglarDevv

Hızlı Menü:


Konuyu Okuyanlar: 1 Ziyaretçi
Change Theme