I have recently moved over to using pipenv and every now and then I get the following error when trying to install packages:
$ pipenv lock --clear --verbose
pipenv.patched.notpip._internal.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in
$ pipenv install social-auth-core
line 704, in from_line
line, extras = _strip_extras(line)
TypeError: 'module' object is not callable
$ python setup.py egg_info
(k, v) for k, v in attrs.items()
File "/home/user/.local/share/virtualenvs/django-app-VE-name/lib/python3.6/site-packages/setuptools/dist.py", line 367, in __init__
for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
AttributeError: module 'pkg_resources' has no attribute 'iter_entry_points'
The github pages for the error have not been helpful, thank you
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)?
Assuming you're using
--user
installs, you can upgrade and/or check with the following command:Note: This should be run outside of your virtual environment, not while it's activated.