Compile python ให้เป็น exe

tags:

คือว่าผม Compile โปรแกรม python ที่ผมเขียนด้วย PyInstaller ให้เป็น exe แต่ทุกครั้งที่ได้ exe มาเมื่อ
ใช้งาน ก็จะมีการเปิด ms dos มาด้วยครับ ผมอยากจะให้ไม่
ต้องเปิด ms dos อะคับ ไม่ทราบว่าต้อง config ตรงไหนเพิ่มคับ

cwt's picture

ใช้คำสั่ง python Makespec.py -h แล้วจะพบท่อนหนึ่งว่า

    Windows specific options:
    -c, --console, --nowindowed
                        use a console subsystem executable (Windows only)
                        (default)
    -w, --windowed, --noconsole
                        use a Windows subsystem executable (Windows only)

ดังนั้นให้ใส่ -w ด้วยครับเวลา Makespec

khao_lek's picture

ทำได้เรียบร้อยแล้วครับ ขอบคุณ คุณ cwt มากครับ

Site Search

 
Web blognone.com

Poll