Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Emile van Sebille
On 8/28/2012 1:48 PM Ray Jones said... On 08/28/2012 01:35 PM, Emile van Sebille wrote: You installed this with easy_install, so the version of python therein referenced is the same one that now should have access to it. Try : which easy_install then cat the result. The first line points t

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Ray Jones
On 08/28/2012 01:35 PM, Emile van Sebille wrote: > On 8/28/2012 1:17 PM Ray Jones said... >> On 08/28/2012 01:11 PM, eryksun wrote: >>> On Tue, Aug 28, 2012 at 4:00 PM, Ray Jones wrote: Oops. No, I see that /usr/local/lib/python2.7/dist-packages is included in the sys.path. Now what

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Emile van Sebille
On 8/28/2012 1:17 PM Ray Jones said... On 08/28/2012 01:11 PM, eryksun wrote: On Tue, Aug 28, 2012 at 4:00 PM, Ray Jones wrote: Oops. No, I see that /usr/local/lib/python2.7/dist-packages is included in the sys.path. Now what? Good, but does sys.path contain /usr/local/lib/python2.7/dist-pack

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Ray Jones
On 08/28/2012 01:11 PM, eryksun wrote: > On Tue, Aug 28, 2012 at 4:00 PM, Ray Jones wrote: >> Oops. No, I see that /usr/local/lib/python2.7/dist-packages is included >> in the sys.path. Now what? > Good, but does sys.path contain > /usr/local/lib/python2.7/dist-packages/pytz-2012d-py2.7.egg? More

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Ray Jones
On 08/28/2012 01:11 PM, eryksun wrote: > On Tue, Aug 28, 2012 at 4:00 PM, Ray Jones wrote: >> Oops. No, I see that /usr/local/lib/python2.7/dist-packages is included >> in the sys.path. Now what? > Good, but does sys.path contain > /usr/local/lib/python2.7/dist-packages/pytz-2012d-py2.7.egg? No.

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread eryksun
On Tue, Aug 28, 2012 at 4:00 PM, Ray Jones wrote: > > Oops. No, I see that /usr/local/lib/python2.7/dist-packages is included > in the sys.path. Now what? Good, but does sys.path contain /usr/local/lib/python2.7/dist-packages/pytz-2012d-py2.7.egg? ___ T

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Ray Jones
On 08/28/2012 12:52 PM, eryksun wrote: > On Tue, Aug 28, 2012 at 2:39 PM, Ray Jones wrote: >>> Do you have multiple python installations on your machine? Do you run >>> easy_install in one and ipython in another? >> Perhaps. But the module is not accessible from the 'python' shell, from >> 'idle',

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Ray Jones
On 08/28/2012 12:35 PM, Steven D'Aprano wrote: > On 29/08/12 03:41, Ray Jones wrote: >> I'm working on another Python replacement for a Bash script, and I ran >> into a need for enhanced time zone functions. Following directions I >> found on a web site, I did the following: >> >> # easy_install --

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread eryksun
On Tue, Aug 28, 2012 at 2:39 PM, Ray Jones wrote: > >> Do you have multiple python installations on your machine? Do you run >> easy_install in one and ipython in another? > > Perhaps. But the module is not accessible from the 'python' shell, from > 'idle', or from iPython. > > As I peruse Synapti

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Ray Jones
On 08/28/2012 12:44 PM, Peter Otten wrote: > Ray Jones wrote: > >> On 08/28/2012 11:06 AM, Peter Otten wrote: >>> Ray Jones wrote: >>> I'm working on another Python replacement for a Bash script, and I ran into a need for enhanced time zone functions. Following directions I found on

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Ray Jones
On 08/28/2012 12:35 PM, Steven D'Aprano wrote: > On 29/08/12 03:41, Ray Jones wrote: >> I'm working on another Python replacement for a Bash script, and I ran >> into a need for enhanced time zone functions. Following directions I >> found on a web site, I did the following: >> >> # easy_install -

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Peter Otten
Ray Jones wrote: > On 08/28/2012 11:06 AM, Peter Otten wrote: >> Ray Jones wrote: >> >>> I'm working on another Python replacement for a Bash script, and I ran >>> into a need for enhanced time zone functions. Following directions I >>> found on a web site, I did the following: >>> >>> # easy_inst

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Steven D'Aprano
On 29/08/12 03:41, Ray Jones wrote: I'm working on another Python replacement for a Bash script, and I ran into a need for enhanced time zone functions. Following directions I found on a web site, I did the following: # easy_install --upgrade pytz [...] Everything I'm reading suggests that now

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Ray Jones
On 08/28/2012 11:06 AM, Peter Otten wrote: > Ray Jones wrote: > >> I'm working on another Python replacement for a Bash script, and I ran >> into a need for enhanced time zone functions. Following directions I >> found on a web site, I did the following: >> >> # easy_install --upgrade pytz >> Searc

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Peter Otten
Ray Jones wrote: > I'm working on another Python replacement for a Bash script, and I ran > into a need for enhanced time zone functions. Following directions I > found on a web site, I did the following: > > # easy_install --upgrade pytz > Searching for pytz > Reading http://pypi.python.org/simp

Re: [Tutor] Installing modules with easy_install

2012-08-28 Thread Joel Goldstick
On Tue, Aug 28, 2012 at 1:41 PM, Ray Jones wrote: > I'm working on another Python replacement for a Bash script, and I ran > into a need for enhanced time zone functions. Following directions I > found on a web site, I did the following: > > # easy_install --upgrade pytz > Searching for pytz > Rea

[Tutor] Installing modules with easy_install

2012-08-28 Thread Ray Jones
I'm working on another Python replacement for a Bash script, and I ran into a need for enhanced time zone functions. Following directions I found on a web site, I did the following: # easy_install --upgrade pytz Searching for pytz Reading http://pypi.python.org/simple/pytz/ Reading http://pytz.sou

Re: [Tutor] Installing Modules

2012-01-18 Thread Walter Prins
Hi, On 18 January 2012 18:07, Downey, Patrick wrote: > I'm currently running Python version 2.7 through IDLE on a Windows machine. > I'm trying to use numpy and scipy. I downloaded both modules from the scipy > website and unzipped the files into: > C:\Python27\Lib\site-packages > Generally, ma

Re: [Tutor] Installing Modules

2012-01-18 Thread Jerry Hill
On Wed, Jan 18, 2012 at 1:07 PM, Downey, Patrick wrote: > I'm currently running Python version 2.7 through IDLE on a Windows machine. > I'm trying to use numpy and scipy. I downloaded both modules from the scipy > website and unzipped the files into: > C:\Python27\Lib\site-packages > That is not

Re: [Tutor] Installing Modules

2012-01-18 Thread Alan Gauld
On 18/01/12 18:07, Downey, Patrick wrote: I'm trying to use numpy and scipy. I'll leave those specifics to those who use them, but... specified by the environment variable PYTHONPATH." Unfortunately, I haven't figured out how to look at PYTHONPATH, so I don't know where it's looking. Do i

Re: [Tutor] Installing Modules

2012-01-18 Thread Nate Lastname
Have you looked at help(sys)? sys stores the PYTHONPATH variable. Just run >>> import sys >>> help(sys) at the python prompt. On 1/18/12, Downey, Patrick wrote: > Hello, > > I'll start by saying that I have a math/stats background, not a computer > science one. I've found lots of great material

[Tutor] Installing Modules

2012-01-18 Thread Downey, Patrick
Hello, I'll start by saying that I have a math/stats background, not a computer science one. I've found lots of great material to help with Python programming, but have had a much harder time getting my head around setup issues, like installing modules. I'm currently running Python version 2.7 th

[Tutor] Installing modules via setuptools in a script

2007-11-18 Thread Thorsten Kampe
Hi, can anyone give me a short code snippet how to install a missing module via setuptools (assuming setuptools is already installed)?! Something like this: try: import missing_module except import_error import setuptools setuptools.whatever.install(missing_module) Thorsten __