Flask 打包 exe 命令

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章