Error in anyjson setup command: use_2to3 is invalid August 11, 2023 by Tarik Downgrading setuptools worked for me pip install "setuptools<58.0.0" And then pip install django-celery