Reputation: 1461
In the activate_this.py script:
site_packages = os.path.join(base, 'lib', 'python%s' % sys.version[:3], 'site-packages')
It uses sys.version[:3] and this evaluates to python2.6 (the system default). But I had installed python2.7 and created my virtualenv with:
virtualenv -p /usr/local/bin/python2.7 venv
How do I make virtualenv work with the correct version of python?
Creating a symlink from /usr/bin/python to /usr/local/bin/python2.7 is not a solution because the CentOS system depends on python2.6.
Upvotes: 0
Views: 1119
Reputation: 495
Let's face it, python virtualenv is very limited and has very specific usecases. The only way i've been able to accomplish this is by rebuilding mod_wsgi against the desired version of python
How i say the interpreter version for wsgi apache
Upvotes: 0