V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
poke707
V2EX  ›  Python

BAE 里欲用 mongodb,安装 pymongo 模块却失败

  •  
  •   poke707 ·
    Ginhing · Feb 22, 2014 · 4230 views
    This topic created in 4460 days ago, the information mentioned may be changed or developed.
    发布失败:Fix depends failed. Please check requirements.txt.
    在bae提供的本地虚拟机环境可以安装成功并import使用.push到云上却发布失败...

    requirements.txt如下(URL也换过豆瓣的)
    --index-url http://pypi.gocept.com/simple/
    bottle==0.11.6
    MySQL-python==1.2.4
    PIL==1.1.7
    bae_log
    bae_memcache
    pybcs
    redis
    pymongo

    如果无法解决,能有什么替代的mongo驱动吗?
    6 replies    1970-01-01 08:00:00 +08:00
    cevincheung
        1
    cevincheung  
       Feb 22, 2014
    为什么python的这种模块必须要 [安装] ?把源码copy到自己的项目里不能用?不是开源的嘛?
    poke707
        2
    poke707  
    OP
       Feb 22, 2014
    @cevincheung 打算利用requirements.txt,以后换个地方部署也不会太麻烦
    cevincheung
        3
    cevincheung  
       Feb 22, 2014
    @poke707 @.@ 直接把模块放到工程目录里岂不是连部署都不用了。
    shoumu
        4
    shoumu  
       Feb 22, 2014
    我记得bae里面好像有pymongo啊
    loveshouhu
        5
    loveshouhu  
       Feb 22, 2014
    bae mongodb 可以直接用的,你看文档。
    poke707
        6
    poke707  
    OP
       Feb 25, 2014
    联系客服人员..可能是因为官网源墙了,昨天才换的国内源..(原来线上的requirements不支持--index-url)
    可是我还是发布失败...客服查了日志,让我把MySQL-python==1.2.4去掉版本..就正常了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   874 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 21:38 · PVG 05:38 · LAX 14:38 · JFK 17:38
    ♥ Do have faith in what you're doing.