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 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).
Let's go from the start:
- How did you install Python on your machine ?
- How did you install PySide2 ?
- How did you install PyQt5 ?
I have already done all of these things. Like I have said I have been following a lot of other peoples directions.
Please answer my questions. I did not say you did not have installed anything, I am asking how you did install things.
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.
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
Shawn Driscoll last edited by
@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.