views:

64

answers:

2

I want to install the new Python 2.7 on my Windows XP 32bit PC.

having CDO (thats OCD with initials sorted in alphabetical order) I want to install it multiple times on the same computer (to different TARGETDIRs).

how do i do that ? double clicking on the installer, or running msiexec multiple times did not work for me

Coincidentally, I noticed that the windows python installation does not ask me if I want to add a Start Menu option. I want my installations of python not to show up on the Start Menu. How do I do that?

be well

+1  A: 

If I understand correctly you want multiple independent copies of Python 2.7 running on Windows. I assume that is so you can install just the packages you need for each project and not have different projects fighting over conflicting versions.

Try using virtualenv (http://pypi.python.org/pypi/virtualenv). You install Python once, then whenever you need a new copy you run virtualenv.py and it effectively gives you a clean environment with an activate script (activate.bat on Windows) that makes that environment the current one.

Having said all that, I've only used virtualenv on Linux so I don't know how well it works on Windows, but it certainly claims to work on Windows so give it a go.

Edit: For running Python scripts on machines without having to worry whether or not it is already there, the usual solution is to use py2exe (http://www.py2exe.org/). That bundles your application and all libraries together with Python in a single standalone file which can be run without any installation.

Duncan
Ah, ok. My answer crossed with your comment about wanting to install on clients machines without affecting their existing Python. So my assumption was wrong.
Duncan
unfortunately py2exe and its brethren dont play nice with some of the libraries im using (Chaco, Traits etc. due to some very funky import work these libraries perform) so i havent been able to create an executable. Thus i resort to a python installation
bandana
A: 

Based on one of your comments, it looks like you don't actually need to install it, you just need it on the computer so your program can run. In that case you can take a page from Dropbox's book and include the interpreter, DLL, and standard library in one of your directories, and just use it from there.

Ignacio Vazquez-Abrams
Technically speaking - using py2exe is *also* a little hacking - it's just an automated process.
Wayne Werner
Unfortunately, just copying the files (without registering the python27.dll and dlls of other python libraries) wont work. so I guess i need to run the installation somehow
bandana