Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to install PyQT 5 on UBUNTU ?

How to install PyQT 5 on UBUNTU ?

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 4 Posters 38.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bhupathyap
    wrote on last edited by
    #1

    I already have qt 5.2 with qt creator installed in my my machine which runs on ubuntu 12.04 LTS. Now i want to install PyQt in in that .. i have no clue where and how to start it. can i use pyqt with the existing qt creator installation.

    i installed qt5.2 using the .run file

    Pls Help me out

    1 Reply Last reply
    1
    • T Offline
      T Offline
      tarod.net
      wrote on last edited by
      #2

      You should check this web. Following the instructions would give you a nice installation.

      http://pyqt.sourceforge.net/Docs/PyQt5/installation.html

      "Individually, we are one drop. Together, we are an ocean."

      1 Reply Last reply
      0
      • J Offline
        J Offline
        joulC
        wrote on last edited by
        #3

        Tested in ubuntu 15.04

        Download and Install Qtcreator:
        Qt Online Installer for Linux 64-bit
        Install python dev:
        sudo apt-get install python-dev
        Download and Install SIP:
        sip-4.16.7.tar.gz Linux, UNIX, MacOS/X source
        Set QT5 by default:
        sudo apt-get install qt5-default.
        Download and install PyQT:
        PyQt-gpl-5.4.1.tar.gz Linux, UNIX, MacOS/X source

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Swatto
          wrote on last edited by Swatto
          #4

          Hello,

          I followed the steps above but I still get the following error when trying to run a pyQT program:

          ***Traceback (most recent call last):
          File "HelloWorld.py", line 10, in <module>
          from PyQt5 import QtWidgets
          ImportError: No module named PyQt5


          (program exited with code: 1)
          Press return to continue***

          RESOLVED:

          It was because I was trying to run the script directly from Geany! - if I run it from the terminal using: python3 HelloWorld.py it works fine.

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved