Problem: Running into the following error when trying to start up a FastAPI app via
uvicorn main:app --reload:
ImportError: cannot import name 'ParamSpec' from 'typing_extensions' (.../lib/site-packages/typing_extensions.py)
Solution: Change the installed version of the
typing-extensions package to a more recent version such as
pip install typing-extensions==4.3.0
Note: You can check your current version of this package via the command
pip show typing-extensions.
FYI, this solution was done on a Windows machine
Thanks for reading this blog post!
If you have any questions or concerns please feel free to post a comment in this post and I will get back to you when I find the time.