pip install PyQt IOError

后端 未结 5 1479
说谎
说谎 2020-12-29 21:38

I\'m trying to install PyQt package with pip, but I get this error:

~$ pip install PyQt

Downloading/unpacking PyQt  
Downloading PyQt-x11-gpl-4.8.3.tar.gz
(         


        
相关标签:
5条回答
  • 2020-12-29 22:20

    you can pip install the directory of the downloaded version of pyqt after you download it ..google for your desired version

    0 讨论(0)
  • 2020-12-29 22:21

    If you're on Mac, you can use homebrew:

    brew install pyqt
    
    0 讨论(0)
  • 2020-12-29 22:24

    That's because that file has a configure.py not a setup.py. configure.py generate a make file that you use to build pyqt against the qt lib you choose by passing --qmake option to configure.py, it has different options too. I suggest filing a bug with the pip maintainer.

    0 讨论(0)
  • 2020-12-29 22:40

    You can, alternatively, install PyQt4 using ActivePython's binary package manager.

    $ pypm install pyqt4
    The following packages will be installed into "~/.local" (2.7):
     pyqt4-4.8.3.0
    Hit: [pypm-free.activestate.com] pyqt4 4.8.3.0
    Installing pyqt4-4.8.3.0
    $
    

    So long as you already have PyPM, no compilation required.

    0 讨论(0)
  • 2020-12-29 22:43

    Sharing my setup procedure:

    1. create virtual environment on your project folder and activate:

      python3 -m venv venv source venv/bin/activate

    2. use pip to install PyQt5 (Note: specify the version especially on Centos7)

      pip3 install pyqt5==5.14

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