Relative Content

Tag Archive for pythonlinuxfastapi

how to run fastapi with a specific python interpreter on linux

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.