black library error

Any one come across this error when running pip install django.

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/black'

I tried running an older django version (4.1), but got the same error, if I run
pip install black, before pip install Django, I get no errors, but I’ve never had to do this before?

Black is not a Django dependency. Django only requires asgiref and sqlparse for installation. This means you have something in your environment (ide? custom pip commands?) trying to run black.

You can verify this by creating a new virtual environment from the command line, activating it, and doing a pip install Django.