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/
p>
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
div>