我似乎无法为我的生活安装嗖嗖的炼金术。参考: http: //pythonhosted.org/Flask-WhooshAlchemy/。无论如何,我正在关注http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world并且在我尝试安装 whoosh-alchemy 的部分。
我正在输入这 3 个中的任何一个
flask\Scripts\pip install flask-whooshalchemy==0.55a
flask\Scripts\pip install flask-whooshalchemy
flask\Scripts\pip install flask-whooshalchemy==0.55
我得到的错误如下:
Downloading/unpacking flask-whooshalchemy
Downloading Flask-WhooshAlchemy-0.55.tar.gz
Running setup.py (path:C:\users\ray\microblog\flask\build\flask-whooshalchemy\setup.py) egg_info for package flask-whooshalchemy
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "C:\users\ray\microblog\flask\build\flask-whooshalchemy\setup.py", line 28, in <module>
'requirements.txt')).xreadlines()],
AttributeError: '_io.TextIOWrapper' object has no attribute 'xreadlines'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "C:\users\ray\microblog\flask\build\flask-whooshalchemy\setup.py", line 28, in <module>
'requirements.txt')).xreadlines()],
AttributeError: '_io.TextIOWrapper' object has no attribute 'xreadlines'
我根本不知道如何解决这个问题......我正在尝试用谷歌搜索,但没有找到任何运气。也许我的 google-fu 太糟糕了。非常感谢任何帮助。