How to install and use PyQt5 in Windows?

2

Good, download PyQt5 from your official website and in some videos I see that it brings an "executable" file called a designer. When downloading it does not bring said file, only a folder called so I do not know what to do with it, so how can I use PyQt?
The following image has everything contained in the directory after unzipping it, I use it as IDC PyCharm.
Can someone please help me?

    
asked by Parzival 07.05.2017 в 03:33
source

4 answers

1

The designer is part of the QT libraries, if you download pyqt you probably are not downloading or have to compile it. In order to install the designer on Windows you have to install it from link In the installer you can download the version you want from QT and the extra programs that include: designer, creator, studio3d ..... Once everything is installed, you go to the windows icon > programs > QT and there you have them.

    
answered by 17.12.2017 / 20:33
source
1

The recommended way to download PyQt5 (and most python packages) is to open a terminal and type pip install pyqt5 or pip3 install pyqt5 . Now, you have downloaded the .zip file from the official PyQt page, what you should do is:

  • Open a terminal and locate in the folder that you just unzipped.
  • Write python configure.py , with this you will execute the PyQt5 configuration file.
  • Now you must build the executable, for that you write in the terminal make .
  • Finally, it is necessary to install PyQt5 on your computer, for this you write make install
  • The previous steps assume that you have the Python interpreter configured correctly in the path of your system.

    Sources:

    • [1]: link
    • [2]: README of the Pyqt5 installation folder.
    answered by 01.06.2017 в 06:14
    1

    Open a command console and type pip3 install PyQt5 , it will start working, you should leave it until it reaches 100%. When this is finished, you will automatically create a folder where you have Python installed so \Lib\site-packages\PyQt5 . With this you will only be able to run the programs, but you will not be able to design. To download the designer, you have to type the following: pip3 install PyQt5-tools , this will create another folder \Lib\site-packages\PyQt5-tools , and here is the designer.exe I've already tried it and it works. Good luck.

        
    answered by 04.08.2017 в 21:56
    0

    Hi, I have the same problem, I have already managed to make the file run but before finishing the execution of the configure.py file I get this error

      

    Error: Use the - qmake argument to explicitly specify a working Qt qmake.

        
    answered by 30.06.2017 в 20:46