Installing FastAPI and Dependencies

  • First you need to set up a VENV for this project: Click here!

  • Once the Terminal and Interpreter are set up to use the version in VENV go ahead and install via PIP

pip install fastapi[all]
  • Once this is completed you should have both FastAPI and dependencies installed.

  • This can be checked with

pip freeze
  • It will return a list with the packages in pip

Example:

anyio==3.6.1
asgiref==3.5.2
certifi==2022.5.18.1
charset-normalizer==2.0.12
click==8.1.3
colorama==0.4.4
dnspython==2.2.1
fastapi==0.78.0
h11==0.13.0
httptools==0.4.0
idna==3.3
itsdangerous==2.1.2
Jinja2==3.1.2
MarkupSafe==2.1.1
orjson==3.7.2
pydantic==1.9.1
python-dotenv==0.20.0
python-multipart==0.0.5
PyYAML==6.0
requests==2.27.1
six==1.16.0
sniffio==1.2.0
starlette==0.19.1
typing_extensions==4.2.0
ujson==5.3.0
urllib3==1.26.9
uvicorn==0.17.6
watchgod==0.8.2
websockets==10.3
  • These will also be installed in the VENV under lib

  • The executables will be in scripts or in bin on Unix/Linux systems

Last updated