Command “python setup.py egg_info” failed with error code 1 in /private/var/folders/14/4hz051qx0wqd3

error when installing drf-haystack in MAC virtual environment:
the Command “python setup. Py egg_info” failed with the error code 1 in/private/var/folders/14/4 hz051qx0wqd3_7wygk3gj980000gn/T/PIP – install – 49 azdncl/django – haystack/


before installing django-haystack, install setuptools

pip install setuptools-scm

to install django-haystack.

if the above methods still report errors, you can install certifi and fix the problem

pip install certifi==2017.7.27.1

Read More: