Results 1 to 2 of 2

Thread: py2exe ใครรู้ช่วยตอบทีค่าาา

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    5


    ถ้าสมมติว่าเราสร้าง file.exe ด้วย py2exe มันจะสร้าง floder ที่ชื่อว่า dist ขึ้นมาใช่ป่ะคะ แล้ว file ทุกอย่างที่อยู่ใน dist เนี่ยจะเป็ฯส่วนหนึ่งในการเรียก file.exe ของเราใช่ป่ะ ถ้าเราเอา file ตัวใดตัวหนึ่งใน dist ออกไปจะทำให้ file.exe ไม่สามารถใช้งานได้ใช่รึเปล่าคะ

  2. #2
    Junior Member
    Join Date
    Oct 2006
    Posts
    14


    ถ้านำตัวใดตัวหนึ่งหรือ แยกเอาตัว .exe ออกไปเดี่ยวๆจะทำให้ใช้งานไม่ได้ เมื่อเรียก .exe แล้วอาจมีคำเตือนประเภท
    LoadLibrary(pythondll) failedThe specified module could not be found.
    หรือมันหา dll ของมันไม่เจอนั่นเอง
    เพราะฉะนั้น ก็คงต้องเอาไปทั้ง Folder dist นั่นแหล่ะ

    อีกอย่าง เราสามารถลบโฟลเดอร์ build ทิ้งได้

    สำหรับผู้ที่ใช้ Python2.4 หรือ version ที่สูงกว่านั้น จำเป็นจะต้องมีไฟล์ MSVCRT.dll รวมอยู่ในโฟลเดอร์ dist นั้นด้วย
    ซึ่งเป็น dll ของ Microsoft เอง

    รายละเอียดเพิ่มเติมของ py2exe สามารถหาอ่านได้ที่นี่ http://www.py2exe.org/index.cgi/Tutorial

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •