I have followed the procedure below, and the problem has been resolved for my Mac OS.
pip3 uninstall pipenv pip3 list pip3 install pipenv brew install pipenv brew upgrade pipenv (Optional) pipenv install django