看板 Python 關於我們 聯絡資訊
今天嘗試用py2exe做個執行檔 檔案是一個很單純的mod5.py import sys print sys.path print "hi" 在相同目錄下(C:\Users\user name\Desktop\py\) 在建一個setup.py from distutils.core import setup import py2exe setup(console=['mod5.py']) 切換到Cmd,執行 C:\Python26>python C:\Users\user name\Desktop\py\setup.py py2exe C:\Python26\lib\site-packages\py2exe\build_exe.py:16: DeprecationWarning: the sets module is deprecated import sets running py2exe *** searching for required modules *** error: mod5.py: No such file or directory 我有少了那個部份嗎 @@? -- 你真的以為 我說笑話都是真的嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 211.74.249.125
POSIX:應該是要在 你的mod5.py 位置執行 > python setup.py py2exe 12/21 21:46
※ 編輯: dyco 來自: 211.74.249.125 (12/21 23:28)
dyco:解決了,謝謝 ^^ 12/21 23:35