在包含cefpython之前,pyinstaller按预期工作并生成exec文件。我是这项技术的新手,我不知道为什么因为pyinstaller问题或任何其他问题而导致此错误。
除了pyinstaller之外还有什么可以在ubuntu中生成exec吗?
使用版本:
CEF Python 57.0
Python 2.7.12 64bit
wxPython 4.0.0b2 gtk2 (phoenix)
创建执行文件:
ex: pyinstaller --onefile wxpython.py
错误:
Traceback (most recent call last):
File "wxpython.py", line 11, in <module>
from cefpython3 import cefpython as cef
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
exec(bytecode, module.__dict__)
File "cefpython3/__init__.py", line 45, in <module>
File "PyInstaller/loader/pyiboot01_bootstrap.py", line 136, in __init__
File "ctypes/__init__.py", line 362, in __init__
OSError: /tmp/_MEInJSebh/cefpython3/libcef.so: cannot open shared object file: No such file or directory
Failed to execute script wxpython
请让我知道解决方案。