Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Command "python egg_info" failed with error code 1

See original GitHub issue

A minimal Pipfile now fails to lock with pipenv==11.0.2 installed via Homebrew.

Describe your environment
  1. macOS
  2. Python version: Python 3.6.4
  3. Pipenv version: pipenv, version 11.0.2
Expected result

Pipfile.lock is generated after running pipenv install.

Actual result

pip.exceptions.InstallationError: Command “python egg_info” failed with error code 1

Steps to replicate

Using this Pipifile in an otherwise empty directory:


url = ""
verify_ssl = true
name = "pypi"


python_version = "3"


sniffer = "*"
MacFSEvents = {version = "*", sys_platform = "== 'darwin'"}
$ pipenv install
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
nv/patched/piptools/", line 279, in _iter_dependencies
    for dependency in self.repository.get_dependencies(ireq):
  File "/usr/local/Cellar/pipenv/11.0.2/libexec/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/", line 162, in get_dependencies
    legacy_results = self.get_legacy_dependencies(ireq)
  File "/usr/local/Cellar/pipenv/11.0.2/libexec/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/", line 199, in get_legacy_dependencies
    result = reqset._prepare_file(self.finder, ireq)
  File "/usr/local/Cellar/pipenv/11.0.2/libexec/lib/python3.6/site-packages/pipenv/patched/pip/req/", line 639, in _prepare_file
  File "/usr/local/Cellar/pipenv/11.0.2/libexec/lib/python3.6/site-packages/pipenv/patched/pip/req/", line 134, in prep_for_dist
  File "/usr/local/Cellar/pipenv/11.0.2/libexec/lib/python3.6/site-packages/pipenv/patched/pip/req/", line 438, in run_egg_info
    command_desc='python egg_info')
  File "/usr/local/Cellar/pipenv/11.0.2/libexec/lib/python3.6/site-packages/pipenv/patched/pip/utils/", line 707, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "python egg_info" failed with error code 1 in /var/folders/h1/2b6gts3x37zcnj5khyv8y5180000gn/T/tmp0jkxg5jebuild/pync/

At a minimum, I would expect more debugging information to be displayed.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

kennethreitzcommented, Mar 7, 2018

i’ll work on fixing it

jtratnercommented, Mar 7, 2018

we totally reworked all that code (well, I did) recently.

Yeah I figured 😃 if you end up with time to poke at this - awesome! - otherwise when I find time I’ll try to work with a failing and get it to dump debug output

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix 'Python egg_info' Failed with Error Code 1
One major cause of the command "python egg_info" failing with error code 1 is due to the missing ez_setup module in your...
Read more >
"pip install unroll": "python egg_info" failed with error ...
Error code 1 is defined in errno.h and means Operation not permitted . About your error. Your setuptools do not appear to be...
Read more >
Python egg_info Failed with Error Code 1? [Fixed]
What causes the python egg_info failed with error code 1? According to user reports, the error often occurs when your pip or...
Read more >
'Command "python egg_info" failed with error code 1 ...
The error code 1 is defined as Operation not permitted in python standard errno system symbols. This issue is mostly caused when your...
Read more >
Command "python egg_info" failed with error code 1 ...
Command "python egg_info" failed with error code 1 in C:\Users\sanja\AppData\Local\Temp\pip-build-ppc44asr\googleapis-common-protos\ #3884.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found