Run PyQt5 in Ubuntu


Many equations and formulas look intimidating. However, when you hunt them down, they are definitely not! Just papertigers!

Now let's hunt the papertiger.

qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found. This application failed to start because no Qt platform plugin could be initialized.

I accidentally installed the xcb plugin and the problem solved.


There are many excellent tutorials out there. Some tutorials are too intuitive and it's helpful, but you cannot get it straight on the math details. Some focused on dymestifying math. Some focused on code. I found the best tutorials that give you the conceptual ideas and are possible for implementation without being blind to the math details. Drop a comment if I failed. It would be really appreciable.

If you want to cite this article, please cite this article as:

Lachlan Chen, "Run PyQt5 in Ubuntu," in EarnFromScratch, 四月 23, 2019,


title=Run PyQt5 in Ubuntu,
author={Chen, Lachlan},
year=四月 23, 2019

EarnFromScratch (九月 30, 2020) Run PyQt5 in Ubuntu. Retrieved from
"Run PyQt5 in Ubuntu." EarnFromScratch - 九月 30, 2020,
EarnFromScratch 四月 23, 2019 Run PyQt5 in Ubuntu., viewed 九月 30, 2020,<>
EarnFromScratch - Run PyQt5 in Ubuntu. [Internet]. [Accessed 九月 30, 2020]. Available from:
"Run PyQt5 in Ubuntu." EarnFromScratch - Accessed 九月 30, 2020.
"Run PyQt5 in Ubuntu." EarnFromScratch [Online]. Available: [Accessed: 九月 30, 2020]