Heroku找不到点子(非常奇怪)

use*_*652 5 python django heroku

当我推动掌握时,这发生了:

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)
Run Code Online (Sandbox Code Playgroud)

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

这是我从中提取的配置 heroku config

BUILDPACK_URL: https://github.com/heroku/heroku-buildpack-python
Run Code Online (Sandbox Code Playgroud)

但这无法编译我的应用程序,我怎么能真正解决这个问题?

谢谢.

cat*_*ine 0

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

virtualenv --no-site-packages venv
Run Code Online (Sandbox Code Playgroud)

virtualenv --no-site-packages 和 pip 仍然找到全局包?