求助: 在linux系统中用pyinstaller 打包一个python的程序,打包完成后运行出错
-问路 2018-07-18 09:26:52 打包命令: pyinstaller -F sshActivator
执行错误提示:
[20534] mod is NULL - structTraceback (most recent call last):
File "/usr/local/python2/lib/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: /tmp/_MEIajqDn8/_struct.so: undefined symbol: PyUnicodeUCS2_AsEncodedString
[20534] mod is NULL - pyimod02_archiveTraceback (most recent call last):
File "/tmp/pip-install-isd8ci/pyinstaller/PyInstaller/loader/pyimod02_archive.py", line 28, in <module>
ImportError: No module named struct
[20534] mod is NULL - pyimod03_importersTraceback (most recent call last):
File "/tmp/pip-install-isd8ci/pyinstaller/PyInstaller/loader/pyimod03_importers.py", line 24, in <module>
ImportError: No module named pyimod02_archive
Traceback (most recent call last):
File "site-packages/PyInstaller/loader/pyiboot01_bootstrap.py", line 15, in <module>
ImportError: No module named pyimod03_importers
[20534] Failed to execute script pyiboot01_bootstrap