Reputation: 1499
I am trying to put a Django project on heroku following the instructions listed here: http://devcenter.heroku.com/articles/django
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 [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
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
Upvotes: 2
Views: 3353
Reputation: 111
From this stackoverflow question you can do:
virtualenv --no-site-packages venv
The --no-site-packages option prevents the virtual environment from having access to all the packages on your system.
Upvotes: 1