How to install lazy_import on Windows#
If you encounter UnicodeDecodeError
when installing lazy_import
on Windows,
try the following steps:
Download the source code of lazy_import from PyPI.
Unzip the file and open
setup.py
.Modify line 5 and 6 as follows:
with open('README.rst', encoding='utf-8') as infile: readme = infile.read()
Run the following command to install lazy_import from source code:
python setup.py install