For me the issue was related to outdated pip, so upgraded it
{virtualenv}/bin/python3.9 -m pip install --upgrade pip