Problem
I have two conda virtual environments. One can run uvicorn commands such as uvicorn main:app --reload
to run the example code from the FastAPI tutorial, but the other environment returns Access is denied.
for each uvicorn command.
What I have tried
The second (not working one) has the exact same versions of uvicorn, fastapi, and python installed and I'm using the same anaconda prompt. Hence it's not a problem of access rights on the underlying folder or admin rights, because in that case both environments should not work in the same prompts (right?).
I'm looking for a difference in both environments, but given that only fastapi and uvicorn are required to run Fast API code, I'm not sure what to try next.
Question
Are there additional requirements for running a FastAPI app, beyond the fastapi and uvicorn packages that could cause this problem and/or are there perhaps other matters I should look into?