当我推动掌握时,发生了这种情况:
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
但这无法编译我的应用程序,我怎么能真正解决这个问题?
感谢。
答案 0 :(得分:0)
virtualenv --no-site-packages venv
virtualenv --no-site-packages and pip still finding global packages?