看板 Python 關於我們 聯絡資訊
我在安裝pyinstaller時候,按照底下網頁說明操作: http://codex.wiki/post/171811-287 但是在Step 2就出問題了: 2. 進入pyinstaller的目錄執行 python Configure.py 錯誤訊息是: C:\Users\ericchen\python35\PyInstaller-3.0\PyInstaller>python configure.py Traceback (most recent call last): File "configure.py", line 20, in <module> from . import compat SystemError: Parent module '' not loaded, cannot perform relative import 我去看configure.py第20行: from . import compat 請問一下要怎麼解決呢? 謝謝~ ps:我是用python 3.5 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.164.26.141 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1448247526.A.3AC.html
uranusjr: 不要看那個, 直接 pip install pyinstaller 就好了 11/23 13:19
uranusjr: 官方教學 https://pythonhosted.org/PyInstaller/ 11/23 13:19
iuz: 可以了!感謝您! 11/23 13:45
iuz: 另外請問一下,他轉成EXE之後,都是包一大堆其他檔案嗎? 11/23 13:46
amigcamel: 如果你只要一個檔案,請用 --onefile 11/23 14:14
iuz: 最後一個問題~因為我是用tkinter寫GUI,執行exe我不要看到後 11/23 14:26
iuz: 面黑色視窗,我只要看到GUI介面,我還要加什麼參數~ 11/23 14:27
amigcamel: --noconsole 11/23 14:40
iuz: 感謝兩位的回覆~ 11/23 14:50