Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 Pyinstaller和wx_Python 2.7_Wxpython_Pyinstaller - Fatal编程技术网

Python 2.7 Pyinstaller和wx

Python 2.7 Pyinstaller和wx,python-2.7,wxpython,pyinstaller,Python 2.7,Wxpython,Pyinstaller,我是pyinstaller的新手。我正试图从一些python脚本构建一个应用程序。 我有两个脚本:interface.py和loadsave.py。 根据我找到的教程,我进入了.spec文件。没什么,我知道一切都停止了。 这是我的interface.spec: # -*- mode: python -*- a = Analysis(['interface.py','loadsave.py'], pathex=['/home/alessandro/Scrivania/te

我是pyinstaller的新手。我正试图从一些python脚本构建一个应用程序。 我有两个脚本:interface.py和loadsave.py。 根据我找到的教程,我进入了.spec文件。没什么,我知道一切都停止了。 这是我的interface.spec:

# -*- mode: python -*-
a = Analysis(['interface.py','loadsave.py'],
             pathex=['/home/alessandro/Scrivania/tesi/ProgettoTesi_1'],
             hiddenimports=[],
             hookspath=None,
             runtime_hooks=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
          a.scripts,
          exclude_binaries=True,
          name='interface',
          debug=False,
          strip=None,
          upx=False,
          console=False )
coll = COLLECT(exe,
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=None,
               upx=False,
               name='interface')
以及在dist/interface/目录中尝试运行./interface时出现的错误

Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module
    exec(bytecode, module.__dict__)
  File "/home/alessandro/Scrivania/tesi/ProgettoTesi_1/build/interface/out00-PYZ.pyz/wx", line 45, in <module>
  File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module
    exec(bytecode, module.__dict__)
  File "/home/alessandro/Scrivania/tesi/ProgettoTesi_1/build/interface/out00-PYZ.pyz/wx._core", line 4, in <module>
ImportError: No module named _core_

有什么建议吗?

尝试添加到.spec文件“wx.\u core”或“just\u core”中的隐藏导入。

我今天学习了kivy,我将尝试一下