使用 pyinstaller -F C:\Users***.py 生成 exe文件时,AttributeError: Module ‘PyQt5’ has no attribute ‘version’
- 参考:https://blog.youkuaiyun.com/weixin_39677148/article/details/120315328,安装了PyQt5,代码如下:
pip install --user PyQt5
- 安装PyQt5后生成的exe文件运行成功,但是spyder打不开了
- 参考:https://www.zhihu.com/question/319576026/answer/1035008854,重新安装了低版本的
pip uninstall PyQt5
pip install --user PyQt5==5.10.1
- 再次生成exe文件,运行成功,且spyder也成功打开