I can install datrie (a dependency of snakemake) by using pip in a pyenv managed python 3.9.6 or 3.12.3 with no issues. pypi is missing wheels for python >3.8 but the compile with gcc succeeds ...
If it is already installed, first find where python is installed (to find this directory, look for python.exe where it is installed – as shown below) C:\> Dir /s python.exe ...