virtualenv on Windows: not over-riding installed package

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-06-02T19:51:04Z Indexed on 2010/06/02 19:54 UTC
Read the original article Hit count: 251

Filed under:
|
|

My current setup is Python 2.5/ Django 1.1.1 on Windows. I want to start using Django 1.2 on some projects, but can't use it for everything. Which is just the sort of thing I've got virtualenv for. However, I'm running into a problem I've never encountered and it's hard to Google for: installing Django 1.2 into a virtualenv has no effect for me. If I then activate the environment and do

  • python
  • import django
  • django.VERSION

I get "1.1.1 Final". Django is installed in the site-packages directory of my environment and the init file in the root shows that it is 1.2. But the environment falls back to 1.1.1, even if I create the environment with the --no-site-packages flag. What am I screwing up?

© Stack Overflow or respective owner

Related posts about python

Related posts about Windows