我尝试使用pip3 install Flask-FlatPages
.
这是输出:
Downloading/unpacking Flask-FlatPages
Downloading Flask-FlatPages-0.5.tar.gz
Running setup.py (path:/var/www/app/venv/build/Flask-FlatPages/setup.py) egg_info for package Flask-FlatPages
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/var/www/app/venv/build/Flask-FlatPages/setup.py", line 10, in <module>
INIT_PY = open(os.path.join(ROOT, 'flask_flatpages', '__init__.py')).read()
File "/var/www/app/venv/lib/python3.4/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 164: ordinal not in range(128)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/var/www/app/venv/build/Flask-FlatPages/setup.py", line 10, in <module>
INIT_PY = open(os.path.join(ROOT, 'flask_flatpages', '__init__.py')).read()
File "/var/www/app/venv/lib/python3.4/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 164: ordinal not in range(128)
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /var/www/app/venv/build/Flask-FlatPages
Storing debug log for failure in /root/.pip/pip.log
从外观上看,我猜它不兼容 Python 3.x?
有什么我想念的吗?
有没有其他选择?我正在尝试解析此处.md
描述的文件目录。