Pyinstaller 在运行时发出警告

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

嗨,当我尝试将我的 kivy python 应用程序转换为可执行文件时,它给了我以下错误,关于如何修复它有什么想法吗?

 PyInstaller.exceptions.ImportErrorWhenRunningHook: Failed to import module __PyInstaller_hooks_0_kivy required by hook for module /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/hooks/hook-kivy.py. Please check whether module __PyInstaller_hooks_0_kivy actually exists and whether the hook is compatible with your version of /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/hooks/hook-kivy.py: You might want to read more about hooks in the manual and provide a pull-request to improve PyInstaller.
761086 WARNING: stderr: PyInstaller.exceptions.ImportErrorWhenRunningHook: Failed to import module __PyInstaller_hooks_0_kivy required by hook for module /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/hooks/hook-kivy.py. Please check whether module __PyInstaller_hooks_0_kivy actually exists and whether the hook is compatible with your version of /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/hooks/hook-kivy.py: You might want to read more about hooks in the manual and provide a pull-request to improve PyInstaller.
 
python kivy pyinstaller
2个回答
0
投票

pip install -U pyinstaller-hooks-contrib


0
投票

“enum34”包是标准库包的过时向后移植,并且与 PyInstaller 不兼容。请删除这个包 运行:python.exe”-m pip uninstall enum34

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