Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip install PyQt IOError

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
(9.8Mb): 9.8Mb downloaded   Running
setup.py egg_info for package PyQt
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
    IOError: [Errno 2] No such file or directory:
'/home/john/build/PyQt/setup.py'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in
<module>

IOError: [Errno 2] No such file or
directory:
'/home/john/build/PyQt/setup.py

---------------------------------------- Command python setup.py egg_info
failed with error code 1 Storing
complete log in
/home/john/.pip/pip.log
like image 575
J91321 Avatar asked Apr 01 '11 19:04

J91321


People also ask

What is PIP install PyQt5?

Project description PyQt5 is a comprehensive set of Python bindings for Qt v5. It is implemented as more than 35 extension modules and enables Python to be used as an alternative application development language to C++ on all supported platforms including iOS and Android.

How do I install PyQt on Windows 10?

Verify that you have not installed PyQt before pip list . pip install PyQt5 this will install PyQt5. pip install pyqt5-tools this will install the designer.exe in your Scripts folder. If you need PyQt4 you will need to download the Windows wheel package.

How do I run PyQt5 on Ubuntu?

In Ubuntu you can install either from the command line or via "Software Center". The package you are looking for is named python3-pyqt5 . After install is finished, you should be able to run python (or python3 ) and import PyQt5 without errors. You can now start creating Python GUI applications with PyQt5.

Does PyQt work on Linux?

Desktop applications made with PyQt are cross platform, they will work on Microsoft Windows, Apple Mac OS X and Linux computers (including Raspberry Pi).


3 Answers

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.

like image 190
Mike Ramirez Avatar answered Oct 22 '22 14:10

Mike Ramirez


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

brew install pyqt
like image 24
Andy Li Avatar answered Oct 22 '22 14:10

Andy Li


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.

like image 5
Sridhar Ratnakumar Avatar answered Oct 22 '22 16:10

Sridhar Ratnakumar