解决pyinstaller打包后报no module named PyQt5的错

首先,将python2升级为python3.

其次,升级pip为10.0以上的版本。

wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py

最后,卸载重新安装pyinstaller即可正常打包。

sudo pip uninstaller pyinstaller
sudo pip installer pyinstaller
pyinstaller -F myPyFile.py

 

Author: bkdwei

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注