安装 Flask 失败

2015-07-18 20:59:11 +08:00
 DaCong
我在按照教程上的Flask安装步骤做的时候,出现了错误,下面是我操作的过程以及python的版本
希望有V友能给我解决方案
系统:Ubuntu 14.04 64bit
教程链接:http://flask.pocoo.org/docs/0.10/installation/#virtualenv

dacong@dacong-Chen:~$ cd flask/
dacong@dacong-Chen:~/flask$ . venv/bin/activate
(venv)dacong@dacong-Chen:~/flask$ pip install Flask
/home/dacong/flask/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Collecting Flask
Using cached Flask-0.10.1.tar.gz
Hash of the package https://pypi.python.org/packages/source/F/Flask/Flask-0.10.1.tar.gz#md5=378670fe456957eb3c27ddaef60b2b24 (from https://pypi.python.org/simple/flask/) (a3745e36974fc1286700b3ada500d426) doesn't match the expected hash 378670fe456957eb3c27ddaef60b2b24!
Bad md5 hash for package https://pypi.python.org/packages/source/F/Flask/Flask-0.10.1.tar.gz#md5=378670fe456957eb3c27ddaef60b2b24 (from https://pypi.python.org/simple/flask/)
(venv)dacong@dacong-Chen:~/flask$ python --version
Python 2.7.6
2577 次点击
所在节点    Python
2 条回复
MrGba2z
2015-07-18 21:19:16 +08:00
pip install flask --no-cache-dir
DaCong
2015-07-18 21:38:37 +08:00
已经更换v2ex的源,已经解决
@MrGba2z

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/206640

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX