Is it impossible developing with fastApi, uvloop, windows?

9.9k Views Asked by At

I'm learning fastapi from Youtube class
I succeeded. except for the [uvloop] module I realized that uvloop doesn't install in windows and my development environment is Windows + PyCharm.
How are others using this module? Are they only using mac? What should I do?

Should I view other videos or remove uvloop? or replace uvloop?
Help me.

3

There are 3 best solutions below

1
Simon Hawe On

Fastapi itself does not depend on uvloop. The transient extra dependency UVIcorn installed with ao called standard extras however does. However, UVicorn[standard] is just an extra dependency and not a required one. So if you just install fastapi without any extras and uvicorn without extras you should be good to go.

0
LazerDance On

You can develop fastAPI applications on pycharm + windows by creating new fastAPI project directly from pycharm menu.

If you generated a fastAPI application using openapi, then use docker to develop your fastAPI application with pycharm as in the picture below.

configuration for docker + pycharm

0
Bakersen On

I had a similar issue and discovered that I don't need to install uvloop if I am using windows. My fastapi app runs well without it.