Python3.8
version: Python3.8
PyQt5 5.15.1
Anaconda has been installed
finds the article by following the steps:
pip3 install Sip
pip3 install PyQt5
pip install PyQt5-tools -i http://pypi.douban.com/simple –trusted-host=pypi.douban.com
adds pyqt5-tools to the global environment variable (Path). Mine is:
C:\Users**\AppData\Local\Programs\Python\ python38-32 \Lib\site-packages\pyqt5_tools
test code
import sys
from PyQt5 import QtWidgets
app = QtWidgets.QApplication(sys.argv)
widget = QtWidgets.QWidget()
widget.resize(360, 360)
widget.setWindowTitle("hello, pyqt5")
widget.show()
sys.exit(app.exec())
:
: this application failed to start because no Qt platform plugincould be initialized may fix thisproblem
reinstalled PyQt5 also not
qt_qqpa_platform_plugin_path
C:\Users**\AppData\Local\Programs\Python\ python38-32 \Lib\site-packages\PyQt5\Qt\plugins
and then restart the computer, to take effect, appear successful problem solving
reference articles:
https://www.cnblogs.com/yclizq/p/11192128.html
https://blog.csdn.net/zjm12343/article/details/79707275?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.channel_param& depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.channel_param
Read More:
- Under win864 bit, install python, PyQt4 and sip. (final failure, only record)
- Python – writing visual interface (Python + pycharm + pyqt)
- Package python3.1 + PyQt4 into exe
- Installing PyQt4 in Windows + Python 3.6
- yarn install gyp verb `which` failed python2 Error: not found: python2
- Solutions to the problem of cannot find existing pyqt5 plugin directories encountered in pyinstaller packaging
- About Python setup.py Install error
- How to Fix Error in python3 | PIP install Dlib
- Solution: PIP install MySQL Python has the following problems
- python3 install pillow error
- Install pygame-1.9.3 for python 3.6
- Install in Python 3. X web.py
- Error: not found: python2 when executing NPM install
- Mac python install PIL
- How to Install Python 3 in Centos7 Quickly
- Install Python package under MacOS: “error: Command ‘GCC’ failed with exit status 1”
- Can’t find Python executable “D:\python3\python.exe”, you can set the PYTHON env variable.
- Resolve the error raise importerror, str (MSG) + ‘, please install the python TK package’ (valid for personal testing)
- npm install Error: gyp verb `which` failed Error: not found: python
- Python bug: cannot install ‘Django’. It is a distutils installed project and thus we cannot