Doesn't it work with Python?

Guys, I created a sample project but I am not able to make it work with Python: Glitch :・゚✧

Hi @arnonrdp, to make sure it will run automatically simply create a file called and insert the following:


Hope this helps!

Hi @random.
It’s still returning the directory listing:

$ python3
Traceback (most recent call last):
  File "", line 1, in <module>
    import uvicorn
ModuleNotFoundError: No module named 'uvicorn'

To fix this, add a file called requirements.txt and add the following:

I looked at the fastapi docs and it said this would be the best one to use as it includes uvicorn as standard.

Then change your file so it looks like this:

pip3 install -r requirments.txt

hopefully this will work.

1 Like

Worked perfectly!!
Thank you very much @random

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.