pip install pyinstaller
pyinstaller -F run.py
如果報錯
如果報錯
.py", line 34, in pre_safe_import_module
for real_module_name, six_module_name in real_to_six_module_name.items():
AttributeError: 'str' object has no attribute 'items'
執行如下命令解決
pip install -U --pre setuptools