首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法推送到heroku,分发(>=0.6.28)不可用

无法推送到heroku,分发(>=0.6.28)不可用
EN

Stack Overflow用户
提问于 2012-11-17 11:03:52
回答 1查看 1.5K关注 0票数 0

当尝试推送flask-mysql python应用程序时。有没有办法有条件地告诉flask-mysql扩展使用分布式>= 0.6.28?我将它包含在需求文件中,并安装了它,但当我在requirements.txt中点击flask-mysql行时,它仍然没有问题,它仍然尝试使用0.6.27。

代码语言:javascript
复制
Downloading/unpacking MySQL-python (from Flask-MySQL==1.2->-r requirements.txt (line 3))
         Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FM%2FMySQL-python%2FMySQL-python-1.2.4c1.zip
         Running setup.py egg_info for package MySQL-python
           The required version of distribute (>=0.6.28) is not available,
           and can't be installed while this script is running. Please
           install a more recent version first, using
           'easy_install -U distribute'.

           (Currently using distribute 0.6.27 (/tmp/build_1w0z6sg73qbm/.heroku/venv/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg))
           Complete output from command python setup.py egg_info:
           The required version of distribute (>=0.6.28) is not available,

       and can't be installed while this script is running. Please

       install a more recent version first, using

       'easy_install -U distribute'.



       (Currently using distribute 0.6.27 (/tmp/build_1w0z6sg73qbm/.heroku/venv/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg))

       ----------------------------------------
       Command python setup.py egg_info failed with error code 2 in /tmp/build_1w0z6sg73qbm/.heroku/venv/build/MySQL-python
       Storing complete log in /app/.pip/pip.log
 !     Heroku push rejected, failed to compile Python app
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-11-27 02:21:19

我也遇到了同样的问题,我跑了:

代码语言:javascript
复制
easy_install -U distribute

这是一个升级的发行版,然后安装正常。

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13427247

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档