Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Is there some way that I can get a PyQt5 or PySide2 project to run? I have tried a lot of things nothing has worked
Forum Update on Monday, May 27th 2025

Is there some way that I can get a PyQt5 or PySide2 project to run? I have tried a lot of things nothing has worked

Scheduled Pinned Locked Moved Unsolved Qt for Python
7 Posts 4 Posters 495 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.
  • A Offline
    A Offline
    AI_Messiah
    wrote on last edited by
    #1

    I have tried to do it with QT Creator. It isn't as easy as people show. If I can do it with Visual Studio, that would be nice, but I have tried with C++ and form elements are hard to access. I have tried to do it with Visual Studio Code and I think that I have found how to use an interpreter, but I don't know how to select it. What I need is real help, not answers that lead me nowhere (no offense).

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Let's go from the start:

      • How did you install Python on your machine ?
      • How did you install PySide2 ?
      • How did you install PyQt5 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AI_Messiah
        wrote on last edited by
        #3

        I have already done all of these things. Like I have said I have been following a lot of other peoples directions.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Please answer my questions. I did not say you did not have installed anything, I am asking how you did install things.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AI_Messiah
            wrote on last edited by
            #5

            Ok I am sorry,
            so I installed Anaconda and chose the option to include it in my path. I have installed PyCharm, Miniconda and the plain Python and Visual Studio Code. So Anaconda I know both are installed because I used pip and the same with PyCharm. Miniconda and regular python I could not be sure. I tried pip with Visual Studio Code and it says that both are installed. With Visual Studio Code. I have installed all of the QT for Python modules that seem to be relative to what I want. I think I have found interpreters but they seem to have a text field that I need to enter something in. I have even made a copy of a simple project with Visual Studio Code with PyQt5 and some things did autocomplete. With Visual Studio itself I have never written python so I don't know how that works. The thing is that I should just be able to find an interpreter and run my projects.

            JKSHJ S 2 Replies Last reply
            0
            • A AI_Messiah

              Ok I am sorry,
              so I installed Anaconda and chose the option to include it in my path. I have installed PyCharm, Miniconda and the plain Python and Visual Studio Code. So Anaconda I know both are installed because I used pip and the same with PyCharm. Miniconda and regular python I could not be sure. I tried pip with Visual Studio Code and it says that both are installed. With Visual Studio Code. I have installed all of the QT for Python modules that seem to be relative to what I want. I think I have found interpreters but they seem to have a text field that I need to enter something in. I have even made a copy of a simple project with Visual Studio Code with PyQt5 and some things did autocomplete. With Visual Studio itself I have never written python so I don't know how that works. The thing is that I should just be able to find an interpreter and run my projects.

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by JKSH
              #6

              @AI_Messiah said in Is there some way that I can get a PyQt5 or PySide2 project to run? I have tried a lot of things nothing has worked:

              I installed Anaconda

              Anaconda already installs PyQt5. The easiest way to start is to use Spyder to write and run your PyQt5 code.

              I have installed PyCharm, Miniconda and the plain Python and Visual Studio Code.

              It sounds like you now have multiple Python installations and/or environments. Note that you cannot mix them in the same project.

              Also, you must now be mindful of which installation you are modifying when you run pip.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              1
              • A AI_Messiah

                Ok I am sorry,
                so I installed Anaconda and chose the option to include it in my path. I have installed PyCharm, Miniconda and the plain Python and Visual Studio Code. So Anaconda I know both are installed because I used pip and the same with PyCharm. Miniconda and regular python I could not be sure. I tried pip with Visual Studio Code and it says that both are installed. With Visual Studio Code. I have installed all of the QT for Python modules that seem to be relative to what I want. I think I have found interpreters but they seem to have a text field that I need to enter something in. I have even made a copy of a simple project with Visual Studio Code with PyQt5 and some things did autocomplete. With Visual Studio itself I have never written python so I don't know how that works. The thing is that I should just be able to find an interpreter and run my projects.

                S Offline
                S Offline
                Shawn Driscoll
                wrote on last edited by
                #7

                @AI_Messiah You want to find out which one you need for your project (PySide2 or PyQt5), and stick to just using one for now. Sometimes it's a compatibility reason. Sometimes it's a licensing reason.

                There are so many YouTube videos to watch to get you started using a QtGui with Python. I'm using Qt Designer, that comes with PyQt5, to create my GUI for Python. Come back here when you have more questions.

                1 Reply Last reply
                0

                • Login

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