From ranjand2005 at gmail.com Tue Nov 9 08:29:22 2010 From: ranjand2005 at gmail.com (Ranjan) Date: Tue, 9 Nov 2010 07:29:22 +0000 (UTC) Subject: [Idle-dev] Making idle choose different python versions Message-ID: Hi, I would request help in the following problem. Problem: I have installed Python 2.6.5 and then I installed Coopr (https://software.sandia.gov/trac/coopr/wiki/GettingStarted/Installing) for optimization related purpose. Now coopr when installed has a python.exe file of its own in Python26\coopr\bin directory which it uses to access the modules in coopr. Coopr modules "cannot" be accessed using the python.exe present in \Python26 directory. Now my question is how do I make idle choose the python present in the directory Python26/coopr/bin. Idle by default chooses the python in the /Python26 directory. Things I tried: 1. I tried changing the "start in" directory of idle (by right clicking and going to properties). It did not help 2. Added PYTHONPATH in environment variables (of the system) and set PYTHONPATH = C:\Python26\coopr\bin. This also does not work. Any help/pointers is appreciated. Thanks, Ranjan From cben at users.sf.net Tue Nov 9 09:26:32 2010 From: cben at users.sf.net (Beni Cherniavsky-Paskin) Date: Tue, 9 Nov 2010 10:26:32 +0200 Subject: [Idle-dev] Making idle choose different python versions In-Reply-To: References: Message-ID: Basically, idle uses the python executable that idle itself was running with. So try running /Python26/cooper/bin/python -m idlelib.idle or /Python26/cooper/bin/python /Python26/Lib/idlelib/idle.pyw Also, you might want to install coour without isolation from the test of your python installation - according to the site, easy_install coopr should do it. -- sent from a glowing rectangle On Nov 9, 2010 9:43 AM, "Ranjan" wrote: > > Hi, I would request help in the following problem. > > Problem: > > I have installed Python 2.6.5 and then I installed Coopr > (https://software.sandia.gov/trac/coopr/wiki/GettingStarted/Installing) > for optimization related purpose. Now coopr when installed has > a python.exe file of its own in Python26\coopr\bin directory which it uses to > access the modules in coopr. Coopr modules "cannot" be accessed using the > python.exe present in \Python26 directory. > > Now my question is how do I make idle choose the python present > in the directory Python26/coopr/bin. Idle by default chooses the python in the > /Python26 directory. > > Things I tried: > > 1. I tried changing the "start in" directory of idle > (by right clicking and going to properties). It did not help > > 2. Added PYTHONPATH in environment variables (of the system) > and set PYTHONPATH = C:\Python26\coopr\bin. This also > does not work. > > Any help/pointers is appreciated. > > Thanks, > Ranjan > > > > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: