All "yum" command failing due to python package is missing.

0

yum command is failing due to python package is missing. if try to solve the python package then its end up using yum.

Enter image description here

Anyone faced the same problem? Any known fix is available for this issue?

Enter image description here

preguntada hace 9 meses526 visualizaciones
3 Respuestas
1
  1. Check python installation: python --version
  2. Check Python Path
  3. Check Python Packages: sudo yum reinstall python2 python3
  4. Update System: sudo yum clean all, sudo yum update
profile picture
respondido hace 9 meses
  • python version is 2.7.12, python path "/usr/bin/python2.7" Any of the yum command is not working. same error from screenshot.

0

Hi, this error may be fixed this way:

pip -v install pycurl --upgrade assuming that you have pip already installed (to install it if needed: see https://pip.pypa.io/en/stable/installation/)

Best,

Didier

profile pictureAWS
EXPERTO
respondido hace 9 meses
  • Thanks for your response. It didn't help actually. main.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Exception information: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 223, in _main status = self.run(options, args) File "/usr/lib/python2.7/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper return func(self, options, args) File "/usr/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 321, in run reqs, check_supported_wheels=not options.target_dir File "/usr/lib/python2.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 180, in resolve discovered_reqs.extend(self._resolve_one(requirement_set, req)) File "/usr/lib/python2.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 385, in _resolve_one dist = self._get_dist_for(req_to_install) File "/usr/lib/python2.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 337, in _get_dist_for dist = self.preparer.prepare_linked_requirement(req) File "/usr/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) File "/usr/lib/python2.7/site-packages/pip/_internal/operations/prepare.py

0

Maybe you have different Python versions installed: https://stackoverflow.com/a/23590760

profile picture
respondido hace 9 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas