I am testing python code performance with uvloop. I am getting 'uvloop' has no attribute 'EventLoopPolicy' error. I am using python 3.7 and uvloop 0.13.0 pycharm
I tried changing interpreter reinstalling uvloop but none of them did not work. Can anyone suggest what is the problem?

I see that you're on a Mac, but I just fixed this problem on my CentOS7.x server by properly setting permissions to the
uvloopPython package. It's pesky because (at least on CentOS) some pip-installed Python packages go in/usr/local/lib/python3.7/site-packagesand some go in/usr/local/lib64/python3.7/site-packages.Check out what the files in my
lib64directory looked like before I fixed it:Unless I was running as a root user the uvloop files are untouchable and that's what caused the error. On your Mac, try to find where your
uvlooppackage is installed and make sure your script can access it.