V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
DaCong
V2EX  ›  Python

安装 Flask 失败

  •  
  •   DaCong · 2015-07-18 20:59:11 +08:00 · 2586 次点击
    这是一个创建于 3449 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我在按照教程上的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
    2 条回复    2015-07-18 21:38:37 +08:00
    MrGba2z
        1
    MrGba2z  
       2015-07-18 21:19:16 +08:00 via iPhone
    pip install flask --no-cache-dir
    DaCong
        2
    DaCong  
    OP
       2015-07-18 21:38:37 +08:00
    已经更换v2ex的源,已经解决
    @MrGba2z
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3472 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 04:46 · PVG 12:46 · LAX 20:46 · JFK 23:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.