I was facing the same error , downgrading the version pip install --force-reinstall uvicorn<0.24 helped me. Thank you @QuimPuiggalĂ