Ipython: error de instalación de pip

Creado en 14 abr. 2017  ·  28Comentarios  ·  Fuente: ipython/ipython

al correr

pip install ipython

yo obtengo

Collecting ipython
  Using cached ipython-5.3.0-py2-none-any.whl
Collecting pickleshare (from ipython)
  Using cached pickleshare-0.7.4-py2.py3-none-any.whl
Collecting simplegeneric>0.8 (from ipython)
Collecting traitlets>=4.2 (from ipython)
  Using cached traitlets-4.3.2-py2.py3-none-any.whl
Collecting backports.shutil-get-terminal-size; python_version == "2.7" (from ipython)
  Using cached backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl
Collecting decorator (from ipython)
  Using cached decorator-4.0.11-py2.py3-none-any.whl
Collecting pygments (from ipython)
  Using cached Pygments-2.2.0-py2.py3-none-any.whl
Requirement already satisfied: pexpect; sys_platform != "win32" in /usr/lib/python2.7/dist-packages (from ipython)
Collecting pathlib2; python_version == "2.7" or python_version == "3.3" (from ipython)
  Using cached pathlib2-2.2.1-py2.py3-none-any.whl
Requirement already satisfied: setuptools>=18.5 in /usr/local/lib/python2.7/dist-packages (from ipython)
Collecting prompt-toolkit<2.0.0,>=1.0.4 (from ipython)
  Using cached prompt_toolkit-1.0.14-py2-none-any.whl
Requirement already satisfied: enum34; python_version == "2.7" in /usr/lib/python2.7/dist-packages (from traitlets>=4.2->ipython)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from traitlets>=4.2->ipython)
Collecting ipython-genutils (from traitlets>=4.2->ipython)
  Using cached ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting scandir; python_version < "3.5" (from pathlib2; python_version == "2.7" or python_version == "3.3"->ipython)
  Using cached scandir-1.5.tar.gz
Requirement already satisfied: appdirs>=1.4.0 in /usr/local/lib/python2.7/dist-packages (from setuptools>=18.5->ipython)
Requirement already satisfied: packaging>=16.8 in /usr/local/lib/python2.7/dist-packages (from setuptools>=18.5->ipython)
Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.4->ipython)
  Using cached wcwidth-0.1.7-py2.py3-none-any.whl
Requirement already satisfied: pyparsing in /usr/local/lib/python2.7/dist-packages (from packaging>=16.8->setuptools>=18.5->ipython)
Building wheels for collected packages: scandir
  Running setup.py bdist_wheel for scandir ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-mGtqyq/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpzPzH0bpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  copying scandir.py -> build/lib.linux-x86_64-2.7
  running build_ext
  building '_scandir' extension
  creating build/temp.linux-x86_64-2.7
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _scandir.c -o build/temp.linux-x86_64-2.7/_scandir.o
  _scandir.c:14:20: fatal error: Python.h: No such file or directory
   #include <Python.h>
                      ^
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for scandir
  Running setup.py clean for scandir
Failed to build scandir
Installing collected packages: scandir, pathlib2, pickleshare, simplegeneric, decorator, ipython-genutils, traitlets, backports.shutil-get-terminal-size, pygments, wcwidth, prompt-toolkit, ipython
  Running setup.py install for scandir ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-mGtqyq/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-kVFdnD-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    copying scandir.py -> build/lib.linux-x86_64-2.7
    running build_ext
    building '_scandir' extension
    creating build/temp.linux-x86_64-2.7
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _scandir.c -o build/temp.linux-x86_64-2.7/_scandir.o
    _scandir.c:14:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-mGtqyq/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-kVFdnD-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-mGtqyq/scandir/

Comentario más útil

Eso no está relacionado con IPython, el problema proviene de la instalación de scandir , debería verlo con los mantenedores de scandir.

Si te falta Python.h durante la compilación, es probable que te falte el encabezado de Python. Si va a compilar extensiones c (lo que hace implícitamente al instalar en scandir), es posible que desee instalar los encabezados de Python (¿ apt-get install python-dev tal vez?).

Todos 28 comentarios

Eso no está relacionado con IPython, el problema proviene de la instalación de scandir , debería verlo con los mantenedores de scandir.

Si te falta Python.h durante la compilación, es probable que te falte el encabezado de Python. Si va a compilar extensiones c (lo que hace implícitamente al instalar en scandir), es posible que desee instalar los encabezados de Python (¿ apt-get install python-dev tal vez?).

Por cierto, cierro porque este no es un problema de IPython, pero no dudes en seguir haciendo preguntas o comentando.

tu solución funcionó gracias

  • Este correo electrónico fue enviado usando electrones 100% reciclados. Sin humanos ni animales
    resultaron heridos o traumatizados en la creación de este mensaje. No podemos
    garantiza lo mismo para el destinatario.*

El viernes 14 de abril de 2017 a las 13:11, Matthias Bussonnier <
[email protected]> escribió:

Por cierto, cierro porque este no es un problema de IPython, pero siéntete libre de mantener
haciendo preguntas o comentando.


Usted está recibiendo esto porque usted fue el autor del hilo.
Responda a este correo electrónico directamente, véalo en GitHub
https://github.com/ipython/ipython/issues/10454#issuecomment-294193464 ,
o silenciar el hilo
https://github.com/notifications/unsubscribe-auth/AP0A5HJjJ3e9DRWaJEPUe_8PakiWUET9ks5rv6imgaJpZM4M96VS
.

la instalación apt python-dev

  • Este correo electrónico fue enviado usando electrones 100% reciclados. Sin humanos ni animales
    resultaron heridos o traumatizados en la creación de este mensaje. No podemos
    garantiza lo mismo para el destinatario.*

El viernes 14 de abril de 2017 a las 13:25, Furlong, Jonathan <
[email protected]> escribió:

tu solución funcionó gracias

  • Este correo electrónico fue enviado usando electrones 100% reciclados. Sin humanos ni animales
    resultaron heridos o traumatizados en la creación de este mensaje. No podemos
    garantiza lo mismo para el destinatario.*

El viernes 14 de abril de 2017 a las 13:11, Matthias Bussonnier <
[email protected]> escribió:

Por cierto, cierro porque este no es un problema de IPython, pero siéntete libre de mantener
haciendo preguntas o comentando.


Usted está recibiendo esto porque usted fue el autor del hilo.
Responda a este correo electrónico directamente, véalo en GitHub
https://github.com/ipython/ipython/issues/10454#issuecomment-294193464 ,
o silenciar el hilo
https://github.com/notifications/unsubscribe-auth/AP0A5HJjJ3e9DRWaJEPUe_8PakiWUET9ks5rv6imgaJpZM4M96VS
.

Para los usuarios de CentOS, hice la 'herramienta de desarrollo' 'yum groupinstall' y pude instalar ipython (simplemente instalé python-devel, no funcionó) aunque creo que solo debe tener en cuenta las extensiones c como lo señaló Carreau

En Windows, "pip install jupyter" no pudo instalar scandir. Pero "pip install scandir" tuvo éxito. Y "pip install jupyter" tuvo éxito posteriormente.

En Windows, "pip install jupyter" no pudo instalar scandir. Pero "pip install scandir" tuvo éxito. Y "pip install jupyter" tuvo éxito posteriormente.

Eso es raro, ¿puedes comprobar las versiones de pip y setuptools?

¡Cosa segura! Lamento la demora.
pepita v9.0.1
herramientas de configuración v28.8.0

Debo aclarar que instalé todas las demás dependencias además de scandir directamente con pip antes de ejecutar la instalación exitosa de jupyter.

Además, para completar,

Python v2.7.13:a06454b1afa1, 17 de diciembre de 2016, 20:53:40, MSC v.1500 de 64 bits (AMD64)
Windows 10, versión 1703 (compilación del sistema operativo 15063.540)

Me encuentro con este mismo problema en Red Hat Enterprise Linux Server versión 7.4 (Maipo) con Python 2.7.
Estoy tratando de instalar ipython y no puedo debido a scandir.
No he encontrado ninguna solución y la búsqueda de "scandir" coloca este problema en lo alto de la lista de resultados.

¿Alguien puede proporcionar instrucciones sobre cómo instalar scandir en RHEL?

Sigo recibiendo este mismo error al ejecutar sudo pip install scandir

  _scandir.c:14:20: fatal error: Python.h: No such file or directory
   #include <Python.h>
                      ^
  compilation terminated.
  error: command 'gcc' failed with exit status 1

Parece un problema de variable PATH. Podría querer hacer un
"dónde está Python.h"
Si aparecen una o más rutas, agregue el directorio (sin el nombre del archivo) a su variable PATH. De lo contrario, tendrá problemas mayores y tenemos que averiguar cómo obtener los archivos de encabezado en su máquina.

Muchas gracias por la rápida respuesta. Lo siento por mi verbosidad.
Entonces, whereis Python.h y whereis 'Python.h' no muestran nada en absoluto.

Esta es una máquina remota que se configuró solo con Python 2.7 cuando obtuve acceso por primera vez.
Ni siquiera tenía gcc, así que ejecuté sudo yum groupinstall 'development tool' _después._
¿Podría ser este el problema? Si es así, ¿debería desinstalar Python y volver a instalarlo?

Si lo anterior no importa:
Soy un usuario de sudo pero no root, por lo que puedo scp cualquier archivo que quiera en la mayoría de los lugares.
Simplemente no tengo idea de qué copiar (¿algún archivo de encabezado C Python.h?), dónde copiarlo y qué hacer (agregar algo a la ruta de inclusión de gcc, ¿verdad?, pero desde dónde se ejecuta ese comando gcc ? No sé.

Estoy atascado usando yum (puaj) y rpm así que lamentablemente apt-get no puede resolver mis problemas.
De acuerdo con los documentos, debo usar la versión 5 de ipython y la versión scandir <1.6 con Python 2.7 . No puedo usar Python 3.x debido a restricciones de API de terceros.

Soy un desarrollador experimentado (en todo menos en RHEL), por lo que la instalación manual no me asusta... Simplemente no puedo encontrar nada sobre cómo hacerlo.

En cuanto a mi PATH, actualmente es bastante corto ya que esta máquina se acaba de configurar.
(Tenía Python 2.7 instalado como lo solicité, pero nada más, ni siquiera gcc).

~$ echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin

Python vive aquí:

$ whereis python
python: /usr/bin/python /usr/bin/python2.7 /usr/lib/python2.7 /usr/lib64/python2.7 /etc/python /usr/include/python2.7 /usr/share/man/man1/python.1.gz

Bien. Creo que tengo una solución para usted, o al menos algo para probar. No hay necesidad de disculparse por la verbosidad. La información completa es una virtud en este tipo de situaciones.

sudo yum install python-devel
pip install scandir==1.5

Eso debería instalar los archivos de encabezado de Python en "/usr/include/python2.7/" y obtener la versión de scandir adecuada que necesita. Si tienes más errores, ¡no dudes en publicar de nuevo!

Además, pequeña corrección de antes. Debería haberle aconsejado que usara lo siguiente para verificar la presencia de los encabezados:

sudo updatedb
locate Python.h

En ese momento, no me di cuenta de que whereis está restringido a ejecutables, sus páginas man y sus archivos fuente.

PD En mi publicación inicial, accidentalmente oculté parte del código, pero debería poder verse ahora.

¡Gracias @jmchambers90 por ayudar!

Creo que también podría querer ver el rastreador de problemas de scandir: https://github.com/benhoyt/scandir/issues/85 tiene menciones de RHEL, y creo que debería evitar usar sudo+pip es una receta para problema ya que yum y pip pelearán por los archivos.

Siempre que tenga pip 9+, pip también debe evitar instalar IPython 6+ en Python 2, si tiene una versión anterior de pip y no puede actualizar; es posible que desee pip install ipython<6 .

El error sobre Python.h generalmente significa que no tiene instalados los encabezados de desarrollo de Python. En Red Hat, el paquete que necesita debe ser algo como python-devel o python2-devel (en Debian, es python-dev ). Si alguien ve el mismo error en Python 3, el paquete probablemente será algo así como python3-devel o python3-dev .

@Carreau
Ya miré eso y publiqué una pregunta allí. No funcionó para mí.

@jmchambers90
Gracias por las ideas. Ya los he probado, y diferentes variaciones.
Aquí está la salida:

~$ sudo yum install python-devel
Loaded plugins: product-id, search-disabled-repos, subscription-manager
rhel-7-server-optional-rpms                                                                                                                                                             | 3.5 kB  00:00:00
No package python-devel available.
Error: Nothing to do
~$ pip install scandir==1.5
Collecting scandir==1.5
  Using cached scandir-1.5.tar.gz
Building wheels for collected packages: scandir
  Running setup.py bdist_wheel for scandir ... error
  Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-VI4qqT/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpdgntdppip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  copying scandir.py -> build/lib.linux-x86_64-2.7
  running build_ext
  building '_scandir' extension
  creating build/temp.linux-x86_64-2.7
  gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c _scandir.c -o build/temp.linux-x86_64-2.7/_scandir.o
  _scandir.c:14:20: fatal error: Python.h: No such file or directory
   #include <Python.h>
                      ^
  compilation terminated.
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for scandir
  Running setup.py clean for scandir
Failed to build scandir
Installing collected packages: scandir
  Running setup.py install for scandir ... error
    Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-VI4qqT/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-W_j9CZ-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    copying scandir.py -> build/lib.linux-x86_64-2.7
    running build_ext
    building '_scandir' extension
    creating build/temp.linux-x86_64-2.7
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c _scandir.c -o build/temp.linux-x86_64-2.7/_scandir.o
    _scandir.c:14:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-VI4qqT/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-W_j9CZ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-VI4qqT/scandir/



md5-411faa47d16581696ff1f461eadf5851



~$ sudo updatedb
sudo: updatedb: command not found



md5-411faa47d16581696ff1f461eadf5851



~$ locate Python.h
-bash: locate: command not found

En mi sistema Fedora, el paquete ahora se llama python2-devel . No puedo probar RHEL, pero confío en que habrá un paquete en alguna parte que contenga Python.h . Tendrás que averiguar qué es e instalarlo.

@takluyver Gracias por la respuesta.
Creo que esta máquina está jodida y hay que limpiarla.
Probablemente debido a los firewalls y proxies corporativos, pip y yum parecen estar al tanto de muy poco.

$ pip install python2-devel
Collecting python2-devel
  Could not find a version that satisfies the requirement python2-devel (from versions: )
No matching distribution found for python2-devel

@takluyver tiene razón. Es casi seguro que hay un paquete de desarrollo en yum.

Más cosas para probar. Busque el paquete:

sudo yum buscar python | grep -i desarrollo

Otros han encontrado que lo siguiente es exitoso:

sudo yum instalar python-devel.x86_64

Si todo lo demás falla, podemos extraer las inclusiones de la fuente de Python. La última versión de 2.7 está en

https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz

Y Python.h está en el directorio "Incluir" del archivo descomprimido.

Además, creo que @takluyver estaba sugiriendo que intentaras instalar el paquete en yum, no en pip:

sudo yum instalar python2-devel

Estoy instalando RHEL Server 7.4 para ver lo que ves en lugar de seguir adivinando.

Algo debe estar mal con yum.
Ni siquiera puedo instalar cosas conocidas como Ruby
Esta máquina está mal configurada y creo que solo el soporte técnico puede solucionarlo.

Gracias de todos modos a todos. Has sido más que útil.

~$ sudo yum install python2-devel
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No package python2-devel available.
Error: Nothing to do
~$ sudo yum install python-devel.x86_64
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No package python-devel.x86_64 available.
Error: Nothing to do
~$ sudo yum search python | grep -i devel
dbus-python-devel.i686 : Libraries and headers for dbus-python
dbus-python-devel.x86_64 : Libraries and headers for dbus-python
gstreamer-python-devel.i686 : Headers for developing programs that will use
gstreamer-python-devel.x86_64 : Headers for developing programs that will use
nautilus-python-devel.x86_64 : Python bindings for Nautilus
nemo-python-devel.x86_64 : Python bindings for Nemo
ovirt-engine-sdk-python.noarch : oVirt Engine Software Development Kit (Python)
python-caja-devel.x86_64 : Python bindings for Caja
python-cherrypy2.noarch : Pythonic, object-oriented web development framework
python-nbxmpp-doc.noarch : Developer documentation for python-nbxmpp
python-pillow-devel.i686 : Development files for python-pillow
python-pillow-devel.x86_64 : Development files for python-pillow
python-pyside-devel.x86_64 : Development files for python-pyside
python-tools.x86_64 : A collection of development tools included with Python
python2-behave.noarch : Tools for the behavior-driven development, Python style
                             : developed at OSRF
python34-cairo-devel.x86_64 : Libraries and headers for python34-cairo
python34-devel.x86_64 : Libraries and header files needed for Python 3
                      : development
python34-gobject-devel.x86_64 : Development files for embedding Python 3.4
python34-greenlet-devel.x86_64 : C development headers for python34-greenlet
wxPython-devel.x86_64 : Development files for wxPython add-on modules
xapian-bindings-python.x86_64 : Files needed for developing Python scripts which
TurboGears.noarch : Back-to-front web development in Python
edk2-tools-python.noarch : EFI Development Kit II Tools
gnome-python2-devel.x86_64 : Development files for building add-on libraries
hawkey-devel.i686 : A Library providing simplified C and Python API to libsolv
hawkey-devel.x86_64 : A Library providing simplified C and Python API to libsolv
kobo.noarch : Python modules for tools development
pygtksourceview-devel.x86_64 : Development files for using pygtksourceview in
pyldb-devel.i686 : Development files for the Python bindings for the LDB library
pyldb-devel.x86_64 : Development files for the Python bindings for the LDB
python-igraph-devel.x86_64 : Development files for igraph
python-pycxx-devel.noarch : PyCXX header and source files
python-strainer.noarch : Tools to allow developers to cleanup web serialization
python-zc-buildout.noarch : System for managing development buildouts
python2-clint.noarch : A set of awesome tools for developing commandline
qscintilla-python-devel.noarch : Development files for QScintilla PyQt4 bindings
redhat-support-lib-python.noarch : Red Hat Support Software Development Library
spyder.noarch : Scientific Python Development Environment

Nuevamente, si todo lo demás falla, podemos prescindir de yum y simplemente extraer las inclusiones directamente de la fuente de Python ( https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz ). Después de descomprimir, encontrará Python.h en el directorio "Incluir" del archivo descomprimido. La práctica estándar parece ser conectar los include en /usr/include/python2.7/ . Entonces, una vez que los tenga en su lugar, puede intentar pip install scandir==1.5 nuevamente. Si gcc aún no puede encontrar los include, entonces necesitaremos agregar /usr/include/python2.7/ a la ruta del sistema o descargar la fuente de scandir y modificar la llamada a gcc en los archivos de configuración para scandir.

Es realmente extraño que yum tenga python34-devel.x86_64 y no el equivalente de Python 2.7.

Para solucionar su problema inmediato, puede descargar e instalar el paquete de desarrollo de Python 2.7 directamente desde el repositorio de CentOS en http://mirror.centos.org/centos/7/os/x86_64/Packages/python-devel-2.7.5- 58.el7.x86_64.rpm. Luego puede scp e instalarlo de la siguiente manera:

sudo rpm -ivh python-devel-2.7.5-58.el7.x86_64.rpm

A la larga, probablemente querrá agregar los repositorios de CentOS a yum para poder obtener los otros paquetes de yum que le interesen. Consulte https://techglimpse.com/configure-yum-rhel-centos-repository/ .

Por último, veo lo que quiere decir acerca de la naturaleza simplificada de RHEL. He estado jugando con la instalación mínima y es notable lo poco que incluye. No wget , mlocate , python-devel o ruby . Sin embargo, _todos_ esos paquetes están disponibles en el medio de instalación original en el directorio Paquetes. Si el departamento de TI puede ayudarlo, le recomiendo _enfáticamente_ que copie todo el directorio de paquetes desde el medio de instalación a su máquina para que tenga un lugar fácil y confiable para obtener sus paquetes, incluso cuando falla Yum. Alternativamente, puede descargar la versión de CentOS de la mayoría, si no todos, de estos paquetes directamente desde http://mirror.centos.org/centos/7/os/x86_64/Packages e instalarlos usando el comando rpm . Es cierto que yum es superior si puede hacer que funcione, ya que maneja las dependencias por usted; pero, para eso, tendría que agregar los repositorios de CentOS usando la guía que cité anteriormente.

@jmchambers90 ¡ ESO LO HIZO! ¡FUNCIONÓ!
Muchas gracias. He estado en esto durante al menos 10 u 11 horas.

Tuve el mismo problema en Redhat 7 y funcionó después:

yum instalar python-devel.x86_64

@Carreau ¡¡Muchas gracias!! Su solución me ayudó con la instalación de Droidbot :)

¿Fue útil esta página
0 / 5 - 0 calificaciones