ModuleNotFoundError:PyInstaller + savReaderWriter的py3k

问题描述 投票:0回答:1

我想将PyInstaller与savReaderWriter模块一起使用。我的代码很简单:

import savReaderWriter

print("hello world")
input("Press enter, to finish...")

我正在尝试通过适当的模块使用隐藏导入:

pyinstaller --clean --win-private-assemblies --upx-exclude=vcruntime140.dll --onedir --hidden-import="savReaderWriter" temp.py
pyinstaller --clean --win-private-assemblies --upx-exclude=vcruntime140.dll --onedir --hidden-import="py3k" temp.py
pyinstaller --clean --win-private-assemblies --upx-exclude=vcruntime140.dll --onedir --hidden-import="py3k" --hidden-import="savReaderWriter" temp.py

但是在所有情况下,我都收到相同的错误:

ModuleNotFoundError: No module named 'py3k'
python python-3.x pyinstaller spss
1个回答
0
投票
pyinstaller -p "C:\PyProjects\test\venv\Lib\site-packages\savReaderWriter"; test.py

此外,真正的麻烦是,当您尝试删除模块时,会因为发现非“ UTF-8”字符而发生错误。

© www.soinside.com 2019 - 2024. All rights reserved.