Home > other >  Pyqt5 development interface program, using py2app package failure
Pyqt5 development interface program, using py2app package failure

Time:10-09

Equipment MAC osx, environmental python2.7 and python3.8
Py files, a total of two ` Sandwich. Py ` and ` MainWidget. Py `, are made with pyqt5 development, using ` py2app ` module packaging is not successful (` pyinstaller ` also tried also not successful),

description:
- right-click the Sandwich. Py use python starter start the program, the following error:
 The default interactive shell is now ZSH. 
To update your account To use ZSH, both please run ` CHSH -s/bin/ZSH `.
For more details, both please visit https://support.apple.com/kb/HT208050.
CD '/Users/Strong - ee/Desktop/SandwichApp - master_pic/' & amp; & '/usr/bin/pythonw' & gt; '/Users/Strong - ee/Desktop/SandwichApp - master_pic/Sandwich. Py' & amp; & Echo Exit status: $? & &> The exit 1
Strong - EEdeMini: $CD ~ Strong - ee '/Users/Strong - ee/Desktop/SandwichApp - master_pic/' & amp; &> '/usr/bin/pythonw'/Users/Strong - ee/Desktop/SandwichApp - master_pic/Sandwich. Py '& amp; & Echo Exit status: $? & & The exit 1
Traceback (the most recent call last) :
The File "/Users/Strong - ee/Desktop/SandwichApp - master_pic/Sandwich. Py", line 4, the in & lt; module>
The from PyQt5 import QtCore QtGui, QtWidgets
ImportError: No module named PyQt5


- but in the end to knock ` PIP list ` shows that there is a ` pyqt5 ` and determine installed modules ` pyqt5 `;
- according to https://www.jianshu.com/p/afb6b2b97ce9, the method, the input ` python setup. Py py2app ` USES the default python2.7 out packaging app double-click to open an error cannot be used, with ` python3 setup. Py py2app `, also called python3.8 packaged app flash back directly, please! Very urgent!

  • Related