Python 如何升级Heroku上的分发包?

Python 如何升级Heroku上的分发包?,python,heroku,virtualenv,pip,Python,Heroku,Virtualenv,Pip,我需要在Heroku上运行0.6.28版。我更新了requirements.txt,但似乎没有效果 我正在尝试从一个tarball的模块安装,该tarball需要这个更高版本的分发包 在部署期间,我只得到以下信息: Running setup.py egg_info for package from http://downloads.sourceforge.net/project/mysql-python/mysql-python-test/1.2.4b4/MySQL-python-1

我需要在Heroku上运行0.6.28版。我更新了requirements.txt,但似乎没有效果

我正在尝试从一个tarball的模块安装,该tarball需要这个更高版本的分发包

在部署期间,我只得到以下信息:

     Running setup.py egg_info for package from http://downloads.sourceforge.net/project/mysql-python/mysql-python-test/1.2.4b4/MySQL-python-1.2.4b4.tar.gz
       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_ibj6h3in4vgp/.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,

尝试在第一次推送时将distribute with the specific version添加到依赖项中,然后添加所需的依赖项

cat requirements.txt
...
distribute==0.6.28
...
git push heroku master
...
cat requirements.txt
...
your deps here

尝试在第一次推送时将distribute with the specific version添加到依赖项中,然后添加所需的依赖项

cat requirements.txt
...
distribute==0.6.28
...
git push heroku master
...
cat requirements.txt
...
your deps here

好的,这里有一个解决方案目前确实有效。我认为长期的解决办法是Heroku升级他们的distribute版本

  • 分叉python构建包:
  • 将您需要的需求添加到包中(在另一个pip安装需求步骤之前,我将它们放在bin/compile中)。看看有没有区别
  • 更改应用程序的构建包:

    heroku配置:添加BUILDPACK\u URL=git://github.com/heroku/heroku-buildpack-python.git

  • 再推一下。它应该会起作用

  • 好的,这里有一个解决方案目前确实有效。我认为长期的解决办法是Heroku升级他们的distribute版本

  • 分叉python构建包:
  • 将您需要的需求添加到包中(在另一个pip安装需求步骤之前,我将它们放在bin/compile中)。看看有没有区别
  • 更改应用程序的构建包:

    heroku配置:添加BUILDPACK\u URL=git://github.com/heroku/heroku-buildpack-python.git

  • 再推一下。它应该会起作用