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 4.3.0
.
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
Conclusion
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.
If you found this article helpful please share it and make sure to follow me on Twitter and GitHub, connect with me on LinkedIn and subscribe to my YouTube channel.
Top comments (0)