I faced the same issue, upgrading to 6.0.1 works. The 6.0 version seems to be broken by the Cython 3.0 release and the patch is in 6.0.1.
you can view this thread on Github for reference