Установите Fastapi conda

# To install fasrapi with conda

conda install -c conda-forge fastapi
Dhrey112