Heroku设置 - pip无法找到/安装依赖关系 [英] Heroku setup - pip fails to find/install dependencies
问题描述
我正在按照以下说明将Django项目放在英雄上: http:// devcenter。 heroku.com/articles/django
I am trying to put a Django project on heroku following the instructions listed here: http://devcenter.heroku.com/articles/django
然而,每当我到达这一行,点击失败:
git push heroku主人
However, whenever I get to this line pip fails :
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 git@heroku.com:fierce-stone-5846.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:fierce-stone-5846.git
问题似乎是pip找不到依赖关系。我已经搜索到任何地方的答案,所以任何建议,你可以提供将是有用的。如果需要,您可以在这里找到与.txt文件一起的项目: https://github.com/Ballaw/ Twithub
The problem seems to be that pip can't find the dependencies. I have searched everywhere for an answer so any advice you can offer would be useful. If need be you can find the project along with the requirements.txt file here: https://github.com/Ballaw/Twithub
推荐答案
从这个 stackoverflow问题你可以做:
virtualenv --no-site-packages venv
--no-site-packages选项可防止虚拟环境访问系统上的所有软件包。
The --no-site-packages option prevents the virtual environment from having access to all the packages on your system.
这篇关于Heroku设置 - pip无法找到/安装依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!