0
我用Pyinstaller收拾我的程序, 当我运行的EXE,显示错误消息: 导入错误:没有模块名为“xlsxwriter”导入错误:没有模块名为“xlsxwriter” - 当我使用Pyinstaller收拾程序
我很肯定程序可以运行, 和xlsxwriter已经安装成功。
你能帮我解决这个问题吗?
谢谢。
下面是代表.spec文件
# -*- mode: python -*-
block_cipher = None
a = Analysis(['Main.py'],
pathex=['C:\\Users\\510428\\Desktop\\Ming and Sonic project\\Python_MingAndSonic'],
binaries=None,
datas=None,
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
excludes=None,
win_no_prefer_redirects=None,
win_private_assemblies=None,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='Main',
debug=False,
strip=None,
upx=True,
console=True)
您是否尝试过一些解决方案,以类似问题?也许[这里](http://stackoverflow.com/a/25848112/4545777)?编译过程中是否有错误? – Cnly
[pyinstaller,spec文件,ImportError:没有名为'blah'的模块]可能的重复(http://stackoverflow.com/questions/7436132/pyinstaller-spec-file-importerror-no-module-named-blah) – user1251007