【问题标题】:Heroku can't find pip (very strange)Heroku 找不到 pip(很奇怪)
【发布时间】:2013-03-04 21:18:18
【问题描述】:

当我推送到 master 时,发生了这种情况:

Counting objects: 1, done.
Writing objects: 100% (1/1), 186 bytes, done.
Total 1 (delta 0), reused 0 (delta 0)

-----> Fetching custom git buildpack... done
-----> Python app detected
-----> Preparing Python runtime (python-2.7.3)
-----> Installing Distribute (0.6.35)
-----> Installing Pip (1.3.1)
-----> Installing dependencies using Pip (1.3.1)
/tmp/buildpack_12iaablbmqzbb/bin/compile: line 164: /app/.heroku/python/bin/pip: No such file or directory
 !     Heroku push rejected, failed to compile Python app

To git@heroku.com:xxxxxxxxxx.git
 ! [remote rejected] master -> master (pre-receive hook declined)

为了清楚起见,我指定了构建包,因为由于 Gemfile 的存在,heroku 错误地将我的 python 应用程序检测为 ruby​​ 应用程序。

这是我从heroku config提取的配置

BUILDPACK_URL: https://github.com/heroku/heroku-buildpack-python

但这无法编译我的应用程序,我该如何真正解决这个问题?

谢谢。

【问题讨论】:

标签: python django heroku


【解决方案1】:

问题是 pip 找不到依赖项。你可以做的是,

virtualenv --no-site-packages venv

virtualenv --no-site-packages and pip still finding global packages?

【讨论】:

  • 请仔细阅读错误信息,app/.heroku/python/bin/pip: No such file or directory
  • 你试过pip freeze,查看已安装应用列表吗?
  • 是的,很确定它们与 pip 无关。因为没有指定 buildpack,它可以工作。
猜你喜欢
  • 1970-01-01
  • 2021-08-09
  • 2019-01-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多