【发布时间】:2019-05-09 23:57:55
【问题描述】:
我在玩 Python 的 eel 模块 - 提供了一个使用 Python 功能运行 HTML + CSS/JS 的机会。
制作了一个简单的程序,尝试通过 PyInstaller 制作一个可执行文件。
没有任何错误,但是当运行这个可执行文件时,它在第一行崩溃 - import eel,告诉 - there is no module called 'bottle-websocket'。
我检查了pip:eel,bottle-websocket 已安装。无法弄清楚是什么问题。附件:
main.py:
import eel
from os import path
eel.init(path.dirname(__file__) + "/web")
eel.start('main.html', block=False)
while True:
eel.sleep(10)
错误:
Picture with the error while I try to start the exe
编辑: PyInstaller Log
【问题讨论】:
-
检查您在哪个 Python 版本中安装了
bottle-websocket模块... -
你可以在没有 Pyinstaller 的情况下运行这个脚本而不会出现任何错误吗?
-
是的,它在没有 PyInstaller @BenyaminJafari 的情况下运行完美
-
@R.García bottle-websocket = 0.2.9;鳗鱼 = 0.9.10; PyInstaller = 3.4.0; Python = 3.6 32 位
-
添加 PyInstaller 日志,如果有帮助的话
标签: python electron pyinstaller eel