{"id":1109,"hash":"79927182f7848c214426774e8656761de779d8b23f4ad6d15dcd7393161af361","pattern":"Command &quot;python setup.py egg_info&quot; failed with error code 1 in /tmp/..../","full_message":"I got the following error installing a dependency with pip:\n\npip9.exceptions.InstallationError\nCommand \"python setup.py egg_info\" failed with error code 1 in /tmp/tmpoons7qgkbuild/opencv-python/\n\nBelow is the result of running the command pipenv install opencv-python on a recent linux (5.4.0 x64) system.\n\nLocking [packages] dependencies…\nself.repository.get_dependencies(ireq):\n  File \"/usr/lib/python3/dist-packages/pipenv/patched/piptools/repositories/pypi.py\", line 174, in get_dependencies\n    legacy_results = self.get_legacy_dependencies(ireq)\n  File \"/usr/lib/python3/dist-packages/pipenv/patched/piptools/repositories/pypi.py\", line 222, in get_legacy_dependencies\n    result = reqset._prepare_file(self.finder, ireq, ignore_requires_python=True)\n  File \"/usr/lib/python3/dist-packages/pipenv/patched/notpip/req/req_set.py\", line 644, in _prepare_file\n    abstract_dist.prep_for_dist()\n  File \"/usr/lib/python3/dist-packages/pipenv/patched/notpip/req/req_set.py\", line 134, in prep_for_dist\n    self.req_to_install.run_egg_info()\n  File \"/usr/lib/python3/dist-packages/pipenv/vendor/pip9/req/req_install.py\", line 435, in run_egg_info\n    call_subprocess(\n  File \"/usr/lib/python3/dist-packages/pipenv/vendor/pip9/utils/__init__.py\", line 705, in call_subprocess\n    raise InstallationError(\npip9.exceptions.InstallationError: Command \"python setup.py egg_info\" failed with error code 1 in /tmp/tmpoons7qgkbuild/opencv-python/","ecosystem":"pypi","package_name":"pip","package_version":null,"solution":"How to fix the pip9.exceptions.InstallationError\nMake sure the version of your pip and setuptools is sufficient for manylinux2014 wheels.\n\nA) System Install\n\nsudo python3 -m pip install -U pip\nsudo python3 -m pip install -U setuptools\n\nB) Virtual Env / Pipenv\n\n# Within the venv\npip3 install -U pip\npip3 install -U setuptools\n\nExplanation\nFor me, python setup.py egg_info probably failed because of a recent change in python wheels, as manylinux1 wheels were replaced by manylinux2014 wheels according to open-cv faq.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/64095094/command-python-setup-py-egg-info-failed-with-error-code-1-in-tmp","votes":48,"created_at":"2026-04-19T04:52:22.552501+00:00","updated_at":"2026-04-19T04:52:22.552501+00:00"}