Shell/Bash: install pyqt5 Example

By

Shell/Bash Example: This is the "install pyqt5" Example. compiled from many sources on the internet by SimpleTutorials.org

install pyqt5 tools

pip install pyqt5-tools

install pyqt5

pip install PyQt5

install pyqt5

pip3 install PyQt5

Python PyQt5

# pip install PyQt5==5.15.2
from PyQt5.QtWidgets import QApplication,QMainWindow,QLabel
import sys
app=QApplication(sys.argv)
app.setStyle('Fusion')
app.setApplicationName('PyQt5 App')
win=QMainWindow()
label=QLabel()
label.setText('An App')
win.setCentralWidget(label)
win.show()
sys.exit(app.exec_())

pyqt5 install

pip3 install pyqt5 (Windows)
pip install pyqt5 (Linux/MacOS)

pyqt install

conda install torchvision -c pytorch


* Summary: This "install pyqt5" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others