FastAPI - 解决运行 uvicorn 报错 ImportError: email-validator is not installed, run `pip install pydantic[e.
背景frompydanticimportBaseModel,EmailStrclassUserIn(BaseModel):username:strpassword:stremail:EmailStrfull_name:Optional[str]=None定义的PydanticModel某个字段声明为EmailStr类型运行uvicorn服务器的时候报错ImportError:email-valid