Multiple modules including sphinx.py, config.py, and build.py do not explicitly set the encoding='utf-8' option for Python open() function. As a result, the default encoding is gbk on Windows, but the file encoding is utf-8, thus resulting in
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 884
In addition, the build script uses Linux shell commands such as, rm, cp, etc.
As there are no equivalent commands in Windows shell, the script cannot be run on Windows.
Future updates might address the aforementioned issues in order to support d2lbook to run on Windows.