title: Command "python setup.py egg_info" failed with error code 1 in /tmp/..../
body: <p>I got the following error installing a dependency with <code>pip</code>:</p>
  <blockquote>
  <p>pip9.exceptions.InstallationError
  Command &quot;python setup.py egg_info&quot; failed with error code 1 in /tmp/tmpoons7qgkbuild/opencv-python/</p>
  </blockquote>
  <p>Below is the result of running the command <code>pipenv install opencv-python</code> on a recent linux (5.4.0 x64) system.</p>
  <pre><code>Locking [packages] dependencies…
  self.repository.get_dependencies(ireq):
    File &quot;/usr/lib/python3/dist-packages/pipenv/patched/piptools/repositories/pypi.py&quot;, line 174, in get_dependencies
      legacy_results = self.get_legacy_dependencies(ireq)
    File &quot;/usr/lib/python3/dist-packages/pipenv/patched/piptools/repositories/pypi.py&quot;, line 222, in get_legacy_dependencies
      result = reqset._prepare_file(self.finder, ireq, ignore_requires_python=True)
    File &quot;/usr/lib/python3/dist-packages/pipenv/patched/notpip/req/req_set.py&quot;, line 644, in _prepare_file
      abstract_dist.prep_for_dist()
    File &quot;/usr/lib/python3/dist-packages/pipenv/patched/notpip/req/req_set.py&quot;, line 134, in prep_for_dist
      self.req_to_install.run_egg_info()
    File &quot;/usr/lib/python3/dist-packages/pipenv/vendor/pip9/req/req_install.py&quot;, line 435, in run_egg_info
      call_subprocess(
    File &quot;/usr/lib/python3/dist-packages/pipenv/vendor/pip9/utils/__init__.py&quot;, line 705, in call_subprocess
      raise InstallationError(
  pip9.exceptions.InstallationError: Command &quot;python setup.py egg_info&quot; failed with error code 1 in /tmp/tmpoons7qgkbuild/opencv-python/
  </code></pre>