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
poke707
V2EX  ›  Python

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

  •  
  •   poke707 ·
    Ginhing · 2014-02-22 11:07:17 +08:00 · 3556 次点击
    这是一个创建于 3720 天前的主题,其中的信息可能已经有所发展或是发生改变。
    发布失败: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 条回复    1970-01-01 08:00:00 +08:00
    cevincheung
        1
    cevincheung  
       2014-02-22 12:28:10 +08:00
    为什么python的这种模块必须要 [安装] ?把源码copy到自己的项目里不能用?不是开源的嘛?
    poke707
        2
    poke707  
    OP
       2014-02-22 12:56:32 +08:00
    @cevincheung 打算利用requirements.txt,以后换个地方部署也不会太麻烦
    cevincheung
        3
    cevincheung  
       2014-02-22 13:10:27 +08:00
    @poke707 @.@ 直接把模块放到工程目录里岂不是连部署都不用了。
    shoumu
        4
    shoumu  
       2014-02-22 17:07:22 +08:00
    我记得bae里面好像有pymongo啊
    loveshouhu
        5
    loveshouhu  
       2014-02-22 17:22:05 +08:00
    bae mongodb 可以直接用的,你看文档。
    poke707
        6
    poke707  
    OP
       2014-02-25 19:50:37 +08:00
    联系客服人员..可能是因为官网源墙了,昨天才换的国内源..(原来线上的requirements不支持--index-url)
    可是我还是发布失败...客服查了日志,让我把MySQL-python==1.2.4去掉版本..就正常了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   875 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:01 · PVG 05:01 · LAX 14:01 · JFK 17:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.