I have installed tidy by "conda install -c conda-forge tidy-html5" and then installed pytidylib by "conda install -c hargup/label/pypi pytidylib".