参考链接:http://www.52codes.net/develop/shell/57394.html
- python3.8下载安装软件,在安装过程中将路径加入path。
- pycharm使用社区免费版。
- 使用pip安装PyQt5&pyqt5-tools。安装完毕后,在外部工具中依次配置QtDisigner(设计师),PyUIC(将UI界面转换成Python代码)。在配置QtDisigner时exe的路径为……\Python38\Lib\site-packages\pyqt5_tools\Qt\bin\designer.exe。
ps:
在使用pyinstaller时导出exe过程中,出现“TypeError: an integer is required (got type bytes)”是因为pyinstaller的版本问题。
解决办法:报错前的pyinstaller是用 pip install pyinstaller 来安装的,用下列指令重新安装一次就可以了。pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
使用如下指令可以导出exe:pyinstaller -F -w 目标文件.py