Install the flask mongoengine library for Python3.5 on the win system
- 2020-05-19 05:04:48
- OfStack
Environment: windows 10, python 3.5, flask-mongoengine 0.8.2 or 0.9.0
Install flask-mongoengine using the following command
pip install flask-mongoengine
The following errors occur:
flask-mongoengine-0.8.2\setup.py", line 10, in <module>
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 3978: illegal multibyte sequence
Say setup. The wrong line in py:
doc_path = os.path.join(os.path.dirname(__file__), "docs", "index.rst")
long_description = open(doc_path).read()
An error occurred while reading the doc_path file, docs/ index.rst, which is a help documentation.
Rough 1, the content will be deleted. Download the flask-mongoengine source package from github.
Run the following command to install:
python setup.py install