Skip to content
Advertisement

Problem installing Uvicorn in Termux, Android

I am trying to install and run FastAPI in Termux. I install FastAPI successfully. But when I try to install uvicorn with pip install “uvicorn[standard]” I get this error. I can’t paste the error here, because Stackoverflow identifies it as spam, here is a link

However, I successfully installed it with pip install uvicorn. But when I try uvicorn main:app --reload command, I get this error

JavaScript

without --reload the server runs, but as expected it doesn’t reload if code changes.

I tried same with hypercorn, doesn’t work. Seems like uvicorn and hypercorn can’t be installed properly in Termux. Can anyone find another way of running fastapi in Termux with hot reloading.

Sorry for my bad English, I am not native English speaker. Also sorry if my question doesn’t follow guidelines, It’s my first question here.

Advertisement

Answer

Four months later, I tried again, It works. Back then, I posted an issue in Uvicorn github respiratory and though there was no solution, looks like they fixed it. Btw Uvicorn is using in StatReloader instead of WatchGodReloader in my android.

Advertisement