Quantcast
Channel: Preguntas más recientes con las etiquetas linux - Stack Overflow en español
Viewing all articles
Browse latest Browse all 1694

Problemas con instalación de pyqt5 con pip: "command '/usr/bin/i686-linux-gnu-gcc' failed with exit code 1"

$
0
0

Estoy tratando de instalar Spyder y tengo problemas conPyQt5. Es la única dependencia que me los ha dado. He buscadoinformación sobre como solucionar esto pero la verdad, no me hailustrado mucho.

Si alguien me puede explicar a que se debe este errory cómo solucionarlo se lo agradecería mucho.

Estoy utilizando de python 3.7.3 en una distribución linux x86.

    (entorno_virtual) Distopico@mx:~        $ pip3 install pyqt5==5.15.0        Collecting pyqt5==5.15.0          Using cached PyQt5-5.15.0.tar.gz (3.3 MB)          Installing build dependencies ... error          error: subprocess-exited-with-error× pip subprocess to install build dependencies did not run successfully.│ exit code: 1╰─> [43 lines of output]              Collecting sip<7,>=5.3                Using cached sip-6.5.0.tar.gz (1.2 MB)                Installing build dependencies: started                Installing build dependencies: finished with status 'done'                Getting requirements to build wheel: started                Getting requirements to build wheel: finished with status 'done'                Preparing metadata (pyproject.toml): started                Preparing metadata (pyproject.toml): finished with status 'done'              Collecting PyQt-builder<2,>=1.1.0                Using cached PyQt_builder-1.12.2-py3-none-any.whl (5.6 MB)              Collecting packaging                Using cached packaging-21.3-py3-none-any.whl (40 kB)              Collecting setuptools                Using cached setuptools-60.6.0-py3-none-any.whl (953 kB)              Collecting toml                Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)              Collecting pyparsing!=3.0.5,>=2.0.2                Using cached pyparsing-3.0.7-py3-none-any.whl (98 kB)              Building wheels for collected packages: sip                Building wheel for sip (pyproject.toml): started                Building wheel for sip (pyproject.toml): still running...                Building wheel for sip (pyproject.toml): finished with status 'error'                error: subprocess-exited-with-error× Building wheel for sip (pyproject.toml) did not run successfully.│ exit code: 1╰─> [10 lines of output]                    running bdist_wheel                    running build                    running build_py                    running build_ext                    building 'sipbuild.code_generator' extension                    code_generator/pybinding.c:30:10: fatal error: Python.h: No existe el fichero o el directorio                     #include <Python.h>                              ^~~~~~~~~~                    compilation terminated.                    error: command '/usr/bin/i686-linux-gnu-gcc' failed with exit code 1                    [end of output]                note: This error originates from a subprocess, and is likely not a problem with pip.                ERROR: Failed building wheel for sip              Failed to build sip              ERROR: Could not build wheels for sip, which is required to install pyproject.toml-based projects              [end of output]          note: This error originates from a subprocess, and is likely not a problem with pip.        error: subprocess-exited-with-error× pip subprocess to install build dependencies did not run successfully> .│ exit code: 1╰─> See above for output.        note: This error originates from a subprocess, and is likely not a problem with pip.

Aquí el resto de dependencias que instalé sin problemas:

applaunchservices==0.1.7 atomicwrites==1.2.0 chardetcloudpickle==0.5.0 cookiecutter==1.6.0 diff-match-patch==20181111intervaltree==3.0.2 ipython==7.6.0 jedi==0.17.2 jellyfishjsonschema==3.2.0 keyring==17.0.0 nbconvert==4.0 numpydoc==0.6.0paramiko==2.4.0 parso==0.7.0 pexpect==4.4.0 pickleshare psutil==5.3pygments==2.0 pylint==2.5.0 python-lsp-server==1.3.3python-lsp-black==1.0.0 pyls-spyder==0.4.0 pyxdg==0.26 pyzmq==17qdarkstyle==3.0.2 qstylizer==0.1.10 qtawesome==1.0.2 qtconsole==5.2.1qtpy==1.5.0 rtree==0.9.7 setuptools==49.6.0 sphinx spyder-kernelstextdistance==4.2.0 three-merge==0.1.1 watchdog==0.10.3


Viewing all articles
Browse latest Browse all 1694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>