2
我试图把Django项目在Heroku按照这里列出的说明:http://devcenter.heroku.com/articles/djangoHeroku的设置 - PIP无法找到/安装依赖
但是,每当我得到这一行PIP失败: git push heroku master
-----> Heroku receiving push
-----> Python/Django app detected
-----> Preparing virtualenv version 1.7
New python executable in ./bin/python
Installing distribute...........................................................................................................................................................................................done.
Installing pip...............done.
-----> Activating virtualenv
-----> Installing dependencies using pip version 1.0.2
Downloading/unpacking Brlapi==0.5.5 (from -r requirements.txt (line 1))
Could not find any downloads that satisfy the requirement Brlapi==0.5.5 (from -r requirements.txt (line 1))
No distributions at all found for Brlapi==0.5.5 (from -r requirements.txt (line 1))
. Storing complete log in /app/.pip/pip.log
! Heroku push rejected, failed to compile Python/django app
To [email protected]:fierce-stone-5846.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:fierce-stone-5846.git
问题似乎是pip无法找到依赖关系。我到处搜索了一个答案,所以你可以提供的任何建议都是有用的。如果需要的话,你可以用requirements.txt文件在这里找到一起的项目:https://github.com/Ballaw/Twithub
这是答案,但它有另一个问题。我认为这与PYTHONPATH有关。每当我尝试在heroku上运行应用程序时,日志如下所示: – ballaw 2012-02-20 05:29:29