I'm trying out virtualenv for my django projects and I'm running into some hiccups. Using a webfaction account.
Right now I've got a virtualenv set up and I'm trying to install Django 1.8.2, but when I enter "pip install Django" OR "pip install Django==1.8.2" it always just installs Django-1.7.8 and uses that as the active version.
Here's some code from my command line:
(django_test)[pattmayne@web476 django_test]$ pip install Django==1.8.2
Collecting Django==1.8.2
Using cached Django-1.8.2-py2.py3-none-any.whl
Installing collected packages: Django
Found existing installation: Django 1.7.8
Not uninstalling Django at /home/pattmayne/lib/python3.4/Django-1.7.8-py3.4.egg, outside environment /home/pattmayne/webapps/django_test
Successfully installed Django-1.7.8
Then I test the version of django-admin:
(django_test)[pattmayne@web476 django_test]$ django-admin.py --version
1.7.8
I get the same result when I try django-1.8.0 or 1.8.1
Does anybody know what I'm doing wrong?
When I set up the virtualenv I wrote:
virtualenv . --no-site-packages
So it shouldn't even be acknowledging old installations, should it? This is just a test case so I have no problem deleting it all and starting again.
Any help is appreciated.
EDIT:
When I type "which django-admin.py" it uses the one inside the virtualenv. When I install with "pip install -I Django==1.8.2" it downloads the right one, but then installs the wrong one.
Here's some more output from the command line:
(blog_test)[pattmayne@web476 blog_test]$ pip install -I Django==1.8.2
Collecting Django==1.8.2
Using cached Django-1.8.2-py2.py3-none-any.whl
Installing collected packages: Django
Successfully installed Django-1.7.8
(blog_test)[pattmayne@web476 blog_test]$ which django-admin.py
~/bin/django-admin.py
(blog_test)[pattmayne@web476 blog_test]$ django-admin.py --version
1.7.8
(blog_test)[pattmayne@web476 blog_test]$ bin/django-admin.py --version
-bash: bin/django-admin.py: Permission denied
(blog_test)[pattmayne@web476 blog_test]$
It's using something from a cache. I'll keep messing around, but any insight is still appreciated!