1

I have python 2.7 by default and 2.6 but I need some modules installed on python 2.6 .But by default it is installing on 2.7.Any idea how to do it.

3
  • 2
    Perhaps virtualenv can helps you? Commented May 28, 2012 at 6:24
  • You should consider using virtualenv. See this question: stackoverflow.com/questions/1534210/… Commented May 28, 2012 at 6:26
  • Suppose I have to install following pckgs on python 2.6. Django-1.3.1-py2.6.egg django_autocomplete-1.0.dev49-py2.6.egg django_ajax_selects-1.2.3-py2.6.egg how can we do it using virtualenv.. Commented May 28, 2012 at 7:18

1 Answer 1

1

If you explicitly call your Python 2.6 Binary when installing the package it will install to that instance instead. So instead of python setup.py install you would do /path/to/python26 setup.py install.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.