Heroku can't find pip (very strange)

时间:2020-12-20 20:38:34

When I push to master, this happened:

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

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)

To be clear, I specified build pack, because heroku wrongly detected my python app as ruby app due to the existence of Gemfile.

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

This is the config I pulled from heroku config

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

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

But this fail to compile my app, how can I really solve this?

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

Thanks.

1 个解决方案

#1


0  

The problem is pip cannot find the dependencies. You can do is,

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

virtualenv --no-site-packages venv

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

virtualenv --no-site-packages和pip仍在寻找全球包?

#1


0  

The problem is pip cannot find the dependencies. You can do is,

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

virtualenv --no-site-packages venv

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

virtualenv --no-site-packages和pip仍在寻找全球包?