我正在尝试使用PyInstaller 4升级为windows构建可执行文件。我可以构建可执行文件,但当我导入qscisintilla时,它不起作用。我遵循他们的教程,并试图使用隐藏导入以及,我不知道如何修复它。我一直在使用python3.5.4进行开发。下面是我得到的错误:
newnev\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 621, in exec_module
exec(bytecode, module.__dict__)
File "Window.py", line 10, in <module>
from PyQt5.Qsci import QsciScintilla
ImportError: No module named 'PyQt5.Qsci'
[1016] Failed to execute script Interface
使用过:
pyinstaller --onefile --windowed Window.py
pyinstaller --onefile Window.py
pyinstaller --hidden-import=PyQt5.Qsci --onefile Window.py
pyinstaller --hiddenimport=PyQt5.Qsci --onefile Window.py
even with Pyhton -m PyInstaller --onefile --windowed Window.py
下面是我使用pyinstaller找到的.spec文件--onefile--windowed接口.py你知道吗
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['Interface.py'],
pathex=['C:\\Users\\sasah\\Desktop\\Example'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='Interface',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False )
我不知道如何绕过这些问题,构建正在运行的脚本。你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐