我似乎无法为我的生活安装笨拙的炼金术。参考:http://pythonhosted.org/Flask-WhooshAlchemy/。无论如何,我正在关注http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world以及我试图安装嗖嗖炼金术的部分。
我正在输入这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太可怕了。非常感谢任何帮助。
答案 0 :(得分:2)
我打算发表评论,但显然我不能因为我的低分。
无论如何,我在Flask-WhooshAlchemy的github上发现了this pull request,其中讨论了因错误日志中的xreadlines
调用导致pip安装失败的问题。尝试直接从github安装它,并在那里合并了拉取请求。
这是执行此操作的命令 - pip install git+https://github.com/gyllstromk/Flask-WhooshAlchemy.git