{"id":1120,"hash":"d127fffd167a20d4ec09b189edc8abc37111704aeabb043b2eea9e59a1641454","pattern":"Pipenv installationError: Command &quot;python setup.py egg_info&quot; failed with error code 1 in","full_message":"I have recently moved over to using pipenv and every now and then I get the following error when trying to install packages:\n\n$ pipenv lock --clear --verbose\n\npipenv.patched.notpip._internal.exceptions.InstallationError: Command \"python setup.py egg_info\" failed with error code 1 in\n\n$ pipenv install social-auth-core\n\n line 704, in from_line\nline, extras = _strip_extras(line)\nTypeError: 'module' object is not callable\n\n$ python setup.py egg_info\n\n(k, v) for k, v in attrs.items()\nFile \"/home/user/.local/share/virtualenvs/django-app-VE-name/lib/python3.6/site-packages/setuptools/dist.py\", line 367, in __init__ \nfor ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):\nAttributeError: module 'pkg_resources' has no attribute 'iter_entry_points'\n\nThe github pages for the error have not been helpful, thank you","ecosystem":"pypi","package_name":"django","package_version":null,"solution":"I think these may be bugs that have been fixed in the latest pipenv. Are you using the latest versions of pipenv (and pip, setuptools, and wheel)?\n\nAssuming you're using --user installs, you can upgrade and/or check with the following command:\n\n$ pip install --user --upgrade --upgrade-strategy eager pipenv wheel\nRequirement already up-to-date: pipenv in ./.local/lib/python3.6/site-packages (2018.11.26)\nRequirement already up-to-date: wheel in ./.local/lib/python3.6/site-packages (0.32.3)\nRequirement already up-to-date: setuptools>=36.2.1 in ./.local/lib/python3.6/site-packages (from pipenv) (40.6.3)\nRequirement already up-to-date: virtualenv in ./.local/lib/python3.6/site-packages (from pipenv) (16.1.0)\nRequirement already up-to-date: virtualenv-clone>=0.2.5 in ./.local/lib/python3.6/site-packages (from pipenv) (0.4.0)\nRequirement already up-to-date: pip>=9.0.1 in ./.local/lib/python3.6/site-packages (from pipenv) (18.1)\nRequirement already up-to-date: certifi in ./.local/lib/python3.6/site-packages (from pipenv) (2018.11.29)\n\nNote: This should be run outside of your virtual environment, not while it's activated.","confidence":0.75,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/53780525/pipenv-installationerror-command-python-setup-py-egg-info-failed-with-error-c","votes":15,"created_at":"2026-04-19T04:52:22.558783+00:00","updated_at":"2026-04-19T04:52:22.558783+00:00"}