- 注意:
- 安装pyinstaller,运行pip install pyinstaller
-
安装pyqt包,运行pip install PyQt5
-
cd进项目文件夹地址
-
运行pyi-makespec -D manage.py,生成manage.spec
-
运行pyinstaller manage.spec
-
运行pyinstaller --clean --win-private-assemblies -F manage.py
-
故障:1909 INFO: UPX is not available. 解决方法:【python 问题解决】 ---- UPX is not available._Rattenking的博客-CSDN博客_python upx安装
-
故障:1867 WARNING: Failed to collect submodules for 'django.contrib.postgres.forms' because importing 'django.contrib.postgres.forms' raised: ModuleNotFoundError: No module named 'psycopg2' 解决方法:pip install psycopg2
-
故障:TypeError: expected str, bytes or os.PathLike object, not NoneType 解决方法:C:\Users\XXX\anaconda3\Lib\ntpath.py 185行改为p = os.fspath(str(p))