Python - 我可以使用 cx_Freeze 创建 EEL 可执行文件吗?
Python - Can I use cx_Freeze for creating an EEL executable?
我正在制作一个鳗鱼应用程序,我完成了 html 和其他所有内容,然后我尝试将 .py 文件转换为 .exe 文件。但是 cx_Freeze 给出了以下错误:
Trackback (most recent call last):
File
"C:\Users\user\AppData\local\Programs\Python\Python39\Lib\site-packages\cx_Freeze\initscripts\__stratup__.py", line 113, in run
module_init.run(name + "__main__")
File
"C:\Users\user\AppData\local\Programs\Python\Python39\Lib\site-packages\cx_Freeze\initscripts\Console.py", line 15, in run
exec(code, module_main.__dict__)
File "main.py", line 1, in <module>
File
"C:\Users\user\AppData\local\Programs\Python\Python39\Lib\site-packages\eel\__init__.py", line 7, in <module>
import bottle as btl
File "<frozen importlib._bootstrap>", line 1007, in
_find_and_load
File "<frozen importlib._bootstrap>", line 986, in
_find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in
_load_unlocked
File "<frozen importlib._bootstrap>", line 627, in
_load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File
"C:\Users\user\AppData\local\Programs\Python\Python39\Lib\site-packages\bottle.py", line 74, in <module>
_stdout, _stderr = sys.stdout.write, sys.stderr.write
AttributeError: 'NoneType' object has no attribute 'write'
似乎错误发生在第一行,即 import eel
语句。
我不想使用 Pyinstaller,因为它们被检测为病毒或木马。
我应该在setup.py中添加一些参数,还是应该做什么?
实际上,我认为 cx_Freeze
无法创建 eel
可执行文件。
我尝试过 pyinstaller
,但 cx_Freeze
],我觉得不行。
我正在制作一个鳗鱼应用程序,我完成了 html 和其他所有内容,然后我尝试将 .py 文件转换为 .exe 文件。但是 cx_Freeze 给出了以下错误:
Trackback (most recent call last):
File
"C:\Users\user\AppData\local\Programs\Python\Python39\Lib\site-packages\cx_Freeze\initscripts\__stratup__.py", line 113, in run
module_init.run(name + "__main__")
File
"C:\Users\user\AppData\local\Programs\Python\Python39\Lib\site-packages\cx_Freeze\initscripts\Console.py", line 15, in run
exec(code, module_main.__dict__)
File "main.py", line 1, in <module>
File
"C:\Users\user\AppData\local\Programs\Python\Python39\Lib\site-packages\eel\__init__.py", line 7, in <module>
import bottle as btl
File "<frozen importlib._bootstrap>", line 1007, in
_find_and_load
File "<frozen importlib._bootstrap>", line 986, in
_find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in
_load_unlocked
File "<frozen importlib._bootstrap>", line 627, in
_load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File
"C:\Users\user\AppData\local\Programs\Python\Python39\Lib\site-packages\bottle.py", line 74, in <module>
_stdout, _stderr = sys.stdout.write, sys.stderr.write
AttributeError: 'NoneType' object has no attribute 'write'
似乎错误发生在第一行,即 import eel
语句。
我不想使用 Pyinstaller,因为它们被检测为病毒或木马。
我应该在setup.py中添加一些参数,还是应该做什么?
实际上,我认为 cx_Freeze
无法创建 eel
可执行文件。
我尝试过 pyinstaller
,但 cx_Freeze
],我觉得不行。