I am currently running an interface using the VS code. I have located the file where .py saved. I run terminal using the following command
pyinstaller --onefile AI_VS_TEST.py
the created dist file is empty.
The error I can see in the terminal line as follow:
AttributeError: module 'enum' has no attribute 'IntFlag'
What am I doing wrong?
Thanks
这可能是因为在将IntFlag
添加到enum
时,您使用的是早于 3.6 的 Python 版本。
as stated here: https://github.com/pyinstaller/pyinstaller/issues/4199#issuecomment-487303420
For me doing this solved the problem:
pip uninstall -y enum34
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.