2011-04-01 17 views
27

Estoy tratando de instalar el paquete PyQt con PIP, pero me sale este error:pip instalación PyQt IOError

~$ 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 
+1

Alguien añadió un problema aquí: https://github.com/pypa/pip/issues/579 –

Respuesta

9

Esto se debe a que el archivo no tiene una configure.py un setup.py. configure.py genere un archivo make que use para compilar pyqt contra el qt lib que elija pasando --qmake opción a configure.py, también tiene diferentes opciones. Sugiero archivar un error con el mantenedor de pip.

+3

Para aclarar: todavía puede compila este paquete descargándolo manualmente y siguiendo sus instrucciones de instalación. –

+0

@hector Debería ser con pip, el archivo en realidad proviene de la orilla del río. No tienen binarios * nix, solo ventanas. easy_install maneja bien ftr. –

+5

No, easy_install no sabe cómo manejarlo también –

3

Puede, alternativamente, install PyQt4 usando el administrador de paquetes binarios ActivePython.

$ 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 
$ 

Siempre y cuando usted ya tiene PyPM, no requiere compilación.

8

Si estás en Mac, puede utilizar homebrew:

brew install pyqt 
Cuestiones relacionadas