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

asked 9 months ago489 views
3 Answers
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
answered 9 months ago
  • 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
EXPERT
answered 9 months ago
  • 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
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions