No matching distribution found for fastapi


Could not find a version that satisfies the requirement fastapi (from versions: ) No matching distribution found for fastapi

I was getting the following while trying to install FastAPI. The issue was I had two Python versions installed in my system and I was trying to install it using pip from Python2.7.

Once I tried to install using Python3.9 it worked fine.

C:\Users\Jay>C:\Users\Jay\AppData\Local\Programs\Python\Python39\Scripts\pip.exe install fastapi
Collecting fastapi
  Downloading fastapi-0.68.0-py3-none-any.whl (52 kB)
     |████████████████████████████████| 52 kB 235 kB/s
Collecting pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2
  Downloading pydantic-1.8.2-cp39-cp39-win_amd64.whl (1.9 MB)
     |████████████████████████████████| 1.9 MB 939 kB/s
Collecting starlette==0.14.2
  Downloading starlette-0.14.2-py3-none-any.whl (60 kB)
     |████████████████████████████████| 60 kB 3.8 MB/s
Collecting typing-extensions>=3.7.4.3
  Downloading typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
Installing collected packages: typing-extensions, starlette, pydantic, fastapi
Successfully installed fastapi-0.68.0 pydantic-1.8.2 starlette-0.14.2 typing-extensions-3.10.0.0