No module named fastapi.__main__; 'fastapi' is a package and cannot be directly executed #20
-
First Check
Commit to Help
Example Code
Descriptioni cant run with Operating SystemmacOS Operating System DetailsmacOS 13.2.1 x86_64 Python VersionPython 3.12.3 FastAPI VersionFastAPI CLI version: 0.0.3 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Answered by
mattmess1221
May 8, 2024
Replies: 1 comment 1 reply
-
Use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tiangolo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
python -m fastapi_cli dev app/main.py