I’m (trying to) run FastAPI on a linux container that has multiple versions of python. When I do fastapi run
, I want fastapi to run using a particular python interpreter. (e.g. I want it to use the python at /usr/bin/python3.12
instead of at /usr/bin/python3.9
.
How do I do that?