{"id":2238,"date":"2021-05-30T04:49:02","date_gmt":"2021-05-30T04:49:02","guid":{"rendered":"https:\/\/teza.blog\/?p=2238"},"modified":"2021-06-20T11:12:07","modified_gmt":"2021-06-20T11:12:07","slug":"installing-pyqt5-on-linux","status":"publish","type":"post","link":"https:\/\/teza.blog\/index.php\/2021\/05\/30\/installing-pyqt5-on-linux\/","title":{"rendered":"Installing PyQt on Linux"},"content":{"rendered":"\n<p>Python by itself is a strong Programming Language but if you want more than lines of codes and Grphical User Interface for users to interact with, you need a GUI framework. <br>PyQt is one of the GUI frameworks for Python Developers. <br>Qt by itself is a set of C++ libraries and tools. PyQt is Python binding to work with Qt. <br><br>Below is some of the guidelines installing PyQt5 on Debian Linux. <br>In some Linux Distros where you have two different versions of Python, 2.7 and 3, make sure you use Python3. <br>Python 2.7 is not officially supported past 2020 anyways so its a good idea to stick with Python3. <br><br><strong>Check Python Version <\/strong><br><br><em><code><span class=\"has-inline-color has-vivid-red-color\">$python3 --version<\/span><\/code><\/em><br>it should show something like <br><em><code><span class=\"has-inline-color has-vivid-red-color\">$python 3.7.3<\/span><\/code><\/em><br>if you are not already on Python 3.7, install the latest<br><code><span class=\"has-inline-color has-vivid-red-color\">$sudo apt install python 3.7<\/span><\/code><br><br><strong>Installation<\/strong><\/p>\n\n\n\n<p><code><em><span class=\"has-inline-color has-vivid-red-color\">$pip3 install --user pyqt5<br>$sudo apt-get install python3-pyqt5<br>$sudo apt-get install pyqt5-dev-tools<br>$sudo apt-get install qttools5-dev-tools<\/span><\/em><\/code><\/p>\n\n\n\n<p><br>To test run, start by importing modules from PyQt5 &#8211;<br><em><code><span class=\"has-inline-color has-vivid-red-color\">from PyQt5 import QtCore, QtGui, QtWidgets <\/span><\/code><\/em><br><br>Happy Coding<br>Regards<\/p>\n\n\n\n<p>Teza <br><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python by itself is a strong Programming Language but if you want more than lines of codes and Grphical User Interface for users to interact with, you need a GUI framework. PyQt is one of the GUI frameworks for Python Developers. Qt by itself is a set of C++ libraries and tools. PyQt is Python &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/teza.blog\/index.php\/2021\/05\/30\/installing-pyqt5-on-linux\/\" class=\"read-more\">Read More<span class=\"screen-reader-text\"> &#8220;Installing PyQt on Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82,86],"tags":[79,78,77],"class_list":["post-2238","post","type-post","status-publish","format-standard","hentry","category-linux","category-programming","tag-programming","tag-pyqt","tag-python"],"_links":{"self":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/2238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/comments?post=2238"}],"version-history":[{"count":9,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/2238\/revisions"}],"predecessor-version":[{"id":2430,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/2238\/revisions\/2430"}],"wp:attachment":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/media?parent=2238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/categories?post=2238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/tags?post=2238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}