Start using PyQt with Qt Creator

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I would like to use PyQt with some Qt Creator.



How many and which packages I have to install?



$ sudo apt-get install qtcreator


If I install just qtcreator, do I have to install also PyQt?



$ sudo pip3 install PyQt5


Are these two commands only?







share|improve this question























    up vote
    0
    down vote

    favorite












    I would like to use PyQt with some Qt Creator.



    How many and which packages I have to install?



    $ sudo apt-get install qtcreator


    If I install just qtcreator, do I have to install also PyQt?



    $ sudo pip3 install PyQt5


    Are these two commands only?







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I would like to use PyQt with some Qt Creator.



      How many and which packages I have to install?



      $ sudo apt-get install qtcreator


      If I install just qtcreator, do I have to install also PyQt?



      $ sudo pip3 install PyQt5


      Are these two commands only?







      share|improve this question











      I would like to use PyQt with some Qt Creator.



      How many and which packages I have to install?



      $ sudo apt-get install qtcreator


      If I install just qtcreator, do I have to install also PyQt?



      $ sudo pip3 install PyQt5


      Are these two commands only?









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 12 at 7:16









      J. Doe

      11




      11




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          In Ubuntu 18.04 open the terminal and type:



          sudo apt install qtcreator python3-pyqt5 


          Optionally you can also install python-pyqt5.






          share|improve this answer






























            up vote
            0
            down vote













            If you're on bionic and you do find out PyQt5 is needed alongside Qt Company's pyside2, instead of using sudo issue the pip3 commmand at the prompt for the user who will use the package with the --user switch:



            $ pip3 install --user PyQt5



            For PySide2, you can find more information under the heading 'Development: Getting Started' here: https://wiki.qt.io/Qt_for_Python



            Many popular Python packages, including the core Python packages, are made available by way of your Ubuntu distribution's repo. The caveat is Python core modules like Idle and pip, elements core to the language, must be found so that a complete installation can be assembled. Docs, for instance must be installed separately, and python3-pip installed to get pip3 must be installed separately or by installing python3-setuptools. Consequently, there is what amounts to misinformation about installing Python modules for Python on various flavours of Ubuntu, even in very well documented and active projects. It isn't sufficient to pip install when doing so may break your pip installation, forcing you to clear and reinstall it.



            It is a safe bet that if you can find the package you're looking for in an Ubuntu repo for your distribution, you should install it -- that way. Otherwise, the --user switch is your friend.






            share|improve this answer























              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "89"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );








               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045816%2fstart-using-pyqt-with-qt-creator%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              0
              down vote













              In Ubuntu 18.04 open the terminal and type:



              sudo apt install qtcreator python3-pyqt5 


              Optionally you can also install python-pyqt5.






              share|improve this answer



























                up vote
                0
                down vote













                In Ubuntu 18.04 open the terminal and type:



                sudo apt install qtcreator python3-pyqt5 


                Optionally you can also install python-pyqt5.






                share|improve this answer

























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  In Ubuntu 18.04 open the terminal and type:



                  sudo apt install qtcreator python3-pyqt5 


                  Optionally you can also install python-pyqt5.






                  share|improve this answer















                  In Ubuntu 18.04 open the terminal and type:



                  sudo apt install qtcreator python3-pyqt5 


                  Optionally you can also install python-pyqt5.







                  share|improve this answer















                  share|improve this answer



                  share|improve this answer








                  edited Jun 19 at 19:23


























                  answered Jun 19 at 19:17









                  karel

                  49.4k11105126




                  49.4k11105126






















                      up vote
                      0
                      down vote













                      If you're on bionic and you do find out PyQt5 is needed alongside Qt Company's pyside2, instead of using sudo issue the pip3 commmand at the prompt for the user who will use the package with the --user switch:



                      $ pip3 install --user PyQt5



                      For PySide2, you can find more information under the heading 'Development: Getting Started' here: https://wiki.qt.io/Qt_for_Python



                      Many popular Python packages, including the core Python packages, are made available by way of your Ubuntu distribution's repo. The caveat is Python core modules like Idle and pip, elements core to the language, must be found so that a complete installation can be assembled. Docs, for instance must be installed separately, and python3-pip installed to get pip3 must be installed separately or by installing python3-setuptools. Consequently, there is what amounts to misinformation about installing Python modules for Python on various flavours of Ubuntu, even in very well documented and active projects. It isn't sufficient to pip install when doing so may break your pip installation, forcing you to clear and reinstall it.



                      It is a safe bet that if you can find the package you're looking for in an Ubuntu repo for your distribution, you should install it -- that way. Otherwise, the --user switch is your friend.






                      share|improve this answer



























                        up vote
                        0
                        down vote













                        If you're on bionic and you do find out PyQt5 is needed alongside Qt Company's pyside2, instead of using sudo issue the pip3 commmand at the prompt for the user who will use the package with the --user switch:



                        $ pip3 install --user PyQt5



                        For PySide2, you can find more information under the heading 'Development: Getting Started' here: https://wiki.qt.io/Qt_for_Python



                        Many popular Python packages, including the core Python packages, are made available by way of your Ubuntu distribution's repo. The caveat is Python core modules like Idle and pip, elements core to the language, must be found so that a complete installation can be assembled. Docs, for instance must be installed separately, and python3-pip installed to get pip3 must be installed separately or by installing python3-setuptools. Consequently, there is what amounts to misinformation about installing Python modules for Python on various flavours of Ubuntu, even in very well documented and active projects. It isn't sufficient to pip install when doing so may break your pip installation, forcing you to clear and reinstall it.



                        It is a safe bet that if you can find the package you're looking for in an Ubuntu repo for your distribution, you should install it -- that way. Otherwise, the --user switch is your friend.






                        share|improve this answer

























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          If you're on bionic and you do find out PyQt5 is needed alongside Qt Company's pyside2, instead of using sudo issue the pip3 commmand at the prompt for the user who will use the package with the --user switch:



                          $ pip3 install --user PyQt5



                          For PySide2, you can find more information under the heading 'Development: Getting Started' here: https://wiki.qt.io/Qt_for_Python



                          Many popular Python packages, including the core Python packages, are made available by way of your Ubuntu distribution's repo. The caveat is Python core modules like Idle and pip, elements core to the language, must be found so that a complete installation can be assembled. Docs, for instance must be installed separately, and python3-pip installed to get pip3 must be installed separately or by installing python3-setuptools. Consequently, there is what amounts to misinformation about installing Python modules for Python on various flavours of Ubuntu, even in very well documented and active projects. It isn't sufficient to pip install when doing so may break your pip installation, forcing you to clear and reinstall it.



                          It is a safe bet that if you can find the package you're looking for in an Ubuntu repo for your distribution, you should install it -- that way. Otherwise, the --user switch is your friend.






                          share|improve this answer















                          If you're on bionic and you do find out PyQt5 is needed alongside Qt Company's pyside2, instead of using sudo issue the pip3 commmand at the prompt for the user who will use the package with the --user switch:



                          $ pip3 install --user PyQt5



                          For PySide2, you can find more information under the heading 'Development: Getting Started' here: https://wiki.qt.io/Qt_for_Python



                          Many popular Python packages, including the core Python packages, are made available by way of your Ubuntu distribution's repo. The caveat is Python core modules like Idle and pip, elements core to the language, must be found so that a complete installation can be assembled. Docs, for instance must be installed separately, and python3-pip installed to get pip3 must be installed separately or by installing python3-setuptools. Consequently, there is what amounts to misinformation about installing Python modules for Python on various flavours of Ubuntu, even in very well documented and active projects. It isn't sufficient to pip install when doing so may break your pip installation, forcing you to clear and reinstall it.



                          It is a safe bet that if you can find the package you're looking for in an Ubuntu repo for your distribution, you should install it -- that way. Otherwise, the --user switch is your friend.







                          share|improve this answer















                          share|improve this answer



                          share|improve this answer








                          edited Jun 19 at 19:48


























                          answered Jun 19 at 19:10









                          Tim Pozza

                          11




                          11






















                               

                              draft saved


                              draft discarded


























                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045816%2fstart-using-pyqt-with-qt-creator%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                              Trouble downloading packages list due to a “Hash sum mismatch” error

                              How do I move numbers in filenames, in a batch renaming operation?