Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Managing Python installations

Tags:

python

windows

There are many versions of Python, and it becomes difficult to manage them all.

Often I need to install one module into 3 different versions of Python.

Is there a tool which can simplify things?

I'm on Windows.

Thanks.

like image 880
utapyngo Avatar asked Aug 20 '11 07:08

utapyngo


2 Answers

Are you using virtualenv? If not, you definitely want to check that out: http://pypi.python.org/pypi/virtualenv

It helps you by managing and switching between several virtual Python environments, with different versions of Python if you want to.

There are loads of tutorials of how to set it up, all over dem interweb.

like image 112
Legogris Avatar answered Nov 15 '22 10:11

Legogris


What Legogris said: use virtualenv.

I just answered a question on pip, virtualenv, and virtualenvwrapper applicable here. I highly recommend this combination of tools for maintaining isolated python environments.

As a further point, I strong recommend using the no-site-packages option so that each virtualenv has all its requirements in one place.

like image 42
hughdbrown Avatar answered Nov 15 '22 10:11

hughdbrown