As a solution for this I'll recount my experience. I'm currently running OSX and needed to tile some geoTiffs. I noticed that my existing GDAL installation didn't have gdal2tiles so I opted to use the python library [gdal2tiles][1]. The execution was a little different and out of the box requires you to create a python script to run `gdal2tiles.generate_tiles(...)`
The generated html pages are a good start but I'd suggest creating your own previewer with Leaflet following the instructions [here][2]

I'd also suggest using virtual environments with python which allows you to install libraries for specific projects instead of globally. Here's some instruction on this too [https://docs.python.org/3/library/venv.html][3]

Hopefully this helps.

  [1]: https://pypi.org/project/gdal2tiles/
  [2]: https://leafletjs.com/examples/wms/wms.html
  [3]: https://docs.python.org/3/library/venv.html