How to install PyQt5 on Windows?

前端 未结 13 2126
谎友^
谎友^ 2020-12-04 22:41

When I try installing the PyQt5 on Windows using the command

python configure.py

I get this error:

Error: Mak         


        
相关标签:
13条回答
  • 2020-12-04 22:47

    One of the most (probably the most) easiest way to install site-packages like PyQt5 is installing one of the versions of Anaconda. You can just install many of site-packages by installing it. List of avaliable site-packages with Anaconda versions can be checked here.

    1. Dowload Anaconda3 or Anaconda2
    2. Install it.
    3. Add PyQt5's path inside Anaconda installation to your System Environment Variables.

    For example:

    PATH: ....; C:\Anaconda3\Lib\site-packages\PyQt5; ...
    
    1. It is ready to use.
    0 讨论(0)
  • 2020-12-04 22:47

    You can easily install it using Anaconda. At first install Anaconda or Miniconda on you system (download from here) and then install the pyqt as follow:

    conda install pyqt
    

    It works for both version of python (2 and 3).

    0 讨论(0)
  • 2020-12-04 22:48

    If you have python installed completely, it can save you the hassle. All you need to do is enter the following command in your respective shell:

    pip install pyqt5
    

    And contrary to popular belief, AS LONG AS YOU HAVE PIP INSTALLED, you can do this on virtually any OS... Hope this helped!

    0 讨论(0)
  • 2020-12-04 22:49

    If you are using canopy, use the package manager to install qt (and or pyqt)

    0 讨论(0)
  • 2020-12-04 22:50

    If you're using Windows 10, if you use

        py -m pip install pyqt5
    

    in the command prompt it should download fine. Depending on either the version of Python or Windows sometimes python -m pip install pyqt5 isn't accepted, so you have to use py instead. pip is a good way to download a lot of stuff, so I'd recommend that.

    0 讨论(0)
  • 2020-12-04 22:53

    If you are facing problem with pip3 install pyqt5 then try pip3 install pyqt5==5.12.0
    This solved the problem for me

    0 讨论(0)
提交回复
热议问题