By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,386 Members | 1,676 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,386 IT Pros & Developers. It's quick & easy.

Re-installing Numeric and PIL Files

P: n/a
For some reason Python 2.2.4 cannot find the Numeric module. It's been
suggested that I should re-install the Numeric file. How do that? Also the
PIL. The three install files are:
python-2.4.4.msi
PIL-1.1.5.win32-py2.4.exe
Numeric-24.2.win32-py2.4.exe
Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39 15' 7" N, 121 2' 32" W, 2700 feet

'I think it not improbable that man, like the grub that
prepares a chamber for the winged thing it has never seen but
is to be, may have... destinies that he does not understand."
-- Oliver Wendell Holmes
--
Web Page: <home.earthlink.net/~mtnviews>
Feb 7 '07 #1
Share this Question
Share on Google+
15 Replies


P: n/a
W. Watson wrote:
For some reason Python 2.2.4 cannot find the Numeric module. It's been
suggested that I should re-install the Numeric file. How do that? Also the
PIL. The three install files are:
python-2.4.4.msi
PIL-1.1.5.win32-py2.4.exe
Numeric-24.2.win32-py2.4.exe
The latter two are executable installers. Run them.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Feb 7 '07 #2

P: n/a
Robert Kern wrote:
W. Watson wrote:
>For some reason Python 2.2.4 cannot find the Numeric module. It's been
suggested that I should re-install the Numeric file. How do that? Also the
PIL. The three install files are:
python-2.4.4.msi
PIL-1.1.5.win32-py2.4.exe
Numeric-24.2.win32-py2.4.exe

The latter two are executable installers. Run them.
I have re-run Numeric. The python program still cannot detect the Numeric
module. In IDLE, Run Modules shows:
Traceback (most recent call last):
File
"C:\Sandia_Meteors\NewSentinel\Test_Install_YG\Pyt hon_Install\sentuser.py",
line 8, in <module>
from Numeric import *
ImportError: No module named Numeric
sentuser.py looks like:
#!/usr/bin/python

# Sentinel User Program
# J C Chavez
# jo*****@sandia.gov

from Tkinter import *
from Numeric import *
import Image
import ImageChops
import ImageTk
....
Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

'I think it not improbable that man, like the grub that
prepares a chamber for the winged thing it has never seen but
is to be, may have... destinies that he does not understand."
-- Oliver Wendell Holmes
--
Web Page: <home.earthlink.net/~mtnviews>
Feb 8 '07 #3

P: n/a
For some reason Python 2.2.4 cannot find the Numeric module. It's been

Is this a typo, or are you really using 2.2.4? If so, you are going to
have to get the versions of Numeric and PIL that work with Python 2.2.
Or, alternatively, you can install python 2.4.4 with the .msi file you
listed. You should also be able to run that just like an executable if
you are using Windows XP. Based on the assumption that you have Python
2.2 installed, this will leave you with two version of Python, which
will work, but could be tricky. It might be best to just uninstall and
reinstall Python.

-Matt

Feb 8 '07 #4

P: n/a
Matimus wrote:
>For some reason Python 2.2.4 cannot find the Numeric module. It's been

Is this a typo, or are you really using 2.2.4? If so, you are going to
have to get the versions of Numeric and PIL that work with Python 2.2.
Or, alternatively, you can install python 2.4.4 with the .msi file you
listed. You should also be able to run that just like an executable if
you are using Windows XP. Based on the assumption that you have Python
2.2 installed, this will leave you with two version of Python, which
will work, but could be tricky. It might be best to just uninstall and
reinstall Python.

-Matt
Yes, a typo. 2.4.4.

What is installed is:
python-2.4.4.msi
PIL-1.1.5.win32-py2.4.exe
Numeric-24.2.win32-py2.4.exe
Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39 15' 7" N, 121 2' 32" W, 2700 feet

'I think it not improbable that man, like the grub that
prepares a chamber for the winged thing it has never seen but
is to be, may have... destinies that he does not understand."
-- Oliver Wendell Holmes
--
Web Page: <home.earthlink.net/~mtnviews>
Feb 8 '07 #5

P: n/a
BTW, I found a RemoveNumeric.exe and RemovePIL.exe in the C/Python24 folder,
but when I try to execute them, they produce a message about only being able
to use them at start-up.
Feb 8 '07 #6

P: n/a
W. Watson wrote:
Robert Kern wrote:
>W. Watson wrote:
>>For some reason Python 2.2.4 cannot find the Numeric module. It's been
suggested that I should re-install the Numeric file. How do that? Also the
PIL. The three install files are:
python-2.4.4.msi
PIL-1.1.5.win32-py2.4.exe
Numeric-24.2.win32-py2.4.exe
The latter two are executable installers. Run them.
I have re-run Numeric. The python program still cannot detect the Numeric
module.
Well, check to make sure that the Python executable is the one that you think it
is. You can look at sys.executable to find the actual .exe of the running Python
interpreter. With Python 2.4.4 and a standard installation, it should be
c:\Python24\python.exe I believe. Then check to make sure that Numeric and PIL
are actually installed in c:\Python24\Lib\site-packages\ .

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Feb 8 '07 #7

P: n/a
Robert Kern wrote:
W. Watson wrote:
>Robert Kern wrote:
>>W. Watson wrote:
For some reason Python 2.2.4 cannot find the Numeric module. It's been
suggested that I should re-install the Numeric file. How do that? Also the
PIL. The three install files are:
python-2.4.4.msi
PIL-1.1.5.win32-py2.4.exe
Numeric-24.2.win32-py2.4.exe
The latter two are executable installers. Run them.
I have re-run Numeric. The python program still cannot detect the Numeric
module.

Well, check to make sure that the Python executable is the one that you think it
is. You can look at sys.executable to find the actual .exe of the running Python
interpreter. With Python 2.4.4 and a standard installation, it should be
c:\Python24\python.exe I believe. Then check to make sure that Numeric and PIL
are actually installed in c:\Python24\Lib\site-packages\ .
This may be a good clue. I'm not the author of the sentuser.py program that
I'm using 2.4 for. It's an application meant for another PC. On that
machine, I only have 2.4 installed. I decided to learn Python a few weeks
ago and installed 2.5.It's quite possible there's some confusion with the
just installed application. I have not yet started my education on python,
so know little about it.

I did a search in the python24 folder for sys.exec* (in c:\python24), but
came up with nothing. [nothing in a search of c:--sys.exec*] I have two
python folders, c:\python24 and c:\python25. The contents of both folders
look fairly similar and each have a python.exe. I do not use a PIL or
Numeric in 2.5.
Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

'I think it not improbable that man, like the grub that
prepares a chamber for the winged thing it has never seen but
is to be, may have... destinies that he does not understand."
-- Oliver Wendell Holmes
--
Web Page: <home.earthlink.net/~mtnviews>
Feb 8 '07 #8

P: n/a
W. Watson wrote:
I did a search in the python24 folder for sys.exec* (in c:\python24), but
came up with nothing. [nothing in a search of c:--sys.exec*] I have two
python folders, c:\python24 and c:\python25. The contents of both folders
look fairly similar and each have a python.exe. I do not use a PIL or
Numeric in 2.5.
I'm sorry. sys is a module. I meant for you to execute the following Python code:

import sys
print sys.executable

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Feb 8 '07 #9

P: n/a
Robert Kern wrote:
W. Watson wrote:
>I did a search in the python24 folder for sys.exec* (in c:\python24), but
came up with nothing. [nothing in a search of c:--sys.exec*] I have two
python folders, c:\python24 and c:\python25. The contents of both folders
look fairly similar and each have a python.exe. I do not use a PIL or
Numeric in 2.5.

I'm sorry. sys is a module. I meant for you to execute the following Python code:

import sys
print sys.executable
I'm savvy about a number of languages, but not yet about Python. What py
file will allow this to be executed?

main myprog
{
import sys
print sys.executable
pause
} ??


Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

"Humans aren't the first species to alter the atmosphere; that
distinction belongs to early bacteria, which some two million
years ago, invented photosynthesis.
-- Field Notes from a Catastrophe, Kolbert

--
Web Page: <home.earthlink.net/~mtnviews>
Feb 8 '07 #10

P: n/a
W. Watson wrote:
Robert Kern wrote:
>W. Watson wrote:
>>I did a search in the python24 folder for sys.exec* (in c:\python24), but
came up with nothing. [nothing in a search of c:--sys.exec*] I have two
python folders, c:\python24 and c:\python25. The contents of both folders
look fairly similar and each have a python.exe. I do not use a PIL or
Numeric in 2.5.
I'm sorry. sys is a module. I meant for you to execute the following Python code:

import sys
print sys.executable
I'm savvy about a number of languages, but not yet about Python. What py
file will allow this to be executed?
Just the lines between the comments here:

####
import sys
print sys.executable
####

I recommend going through the tutorial first, before worrying about Numeric or
PIL. Here is the URL for the 2.4.4 version:

http://www.python.org/doc/2.4.4/tut/tut.html

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Feb 8 '07 #11

P: n/a
Robert Kern wrote:
W. Watson wrote:
>Robert Kern wrote:
>>W. Watson wrote:

I did a search in the python24 folder for sys.exec* (in c:\python24), but
came up with nothing. [nothing in a search of c:--sys.exec*] I have two
python folders, c:\python24 and c:\python25. The contents of both folders
look fairly similar and each have a python.exe. I do not use a PIL or
Numeric in 2.5.
I'm sorry. sys is a module. I meant for you to execute the following Python code:

import sys
print sys.executable
I'm savvy about a number of languages, but not yet about Python. What py
file will allow this to be executed?

Just the lines between the comments here:

####
import sys
print sys.executable
####

I recommend going through the tutorial first, before worrying about Numeric or
PIL. Here is the URL for the 2.4.4 version:

http://www.python.org/doc/2.4.4/tut/tut.html
Here's the program I ran.

### begin
#!/usr/bin/python

# Check mysys

import sys
print sys.executable

### end

It put up a black screen in a flash and disappeared.

Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

"Humans aren't the first species to alter the atmosphere; that
distinction belongs to early bacteria, which some two million
years ago, invented photosynthesis.
-- Field Notes from a Catastrophe, Kolbert

--
Web Page: <home.earthlink.net/~mtnviews>
Feb 8 '07 #12

P: n/a
W. Watson wrote:
Here's the program I ran.

### begin
#!/usr/bin/python

# Check mysys

import sys
print sys.executable

### end

It put up a black screen in a flash and disappeared.
Run it from the terminal or execute those lines in the interactive interpreter
in IDLE. Also, you may want to use the Tutor list, instead of comp.lang.python.
It is more geared towards the questions you are asking.

http://mail.python.org/mailman/listinfo/tutor

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Feb 9 '07 #13

P: n/a
Robert Kern wrote:
W. Watson wrote:
>Here's the program I ran.

### begin
#!/usr/bin/python

# Check mysys

import sys
print sys.executable

### end

It put up a black screen in a flash and disappeared.

Run it from the terminal or execute those lines in the interactive interpreter
in IDLE. Also, you may want to use the Tutor list, instead of comp.lang.python.
It is more geared towards the questions you are asking.

http://mail.python.org/mailman/listinfo/tutor
I entered each line in the shell, and the output shows
C:\Python25\pythonw.exe, so it's not using 2.4. How do I change that?
Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

"Humans aren't the first species to alter the atmosphere; that
distinction belongs to early bacteria, which some two million
years ago, invented photosynthesis.
-- Field Notes from a Catastrophe, Kolbert

--
Web Page: <home.earthlink.net/~mtnviews>

Feb 9 '07 #14

P: n/a
Robert Kern wrote:
W. Watson wrote:
>Here's the program I ran.

### begin
#!/usr/bin/python

# Check mysys

import sys
print sys.executable

### end

It put up a black screen in a flash and disappeared.

Run it from the terminal or execute those lines in the interactive interpreter
in IDLE. Also, you may want to use the Tutor list, instead of comp.lang.python.
It is more geared towards the questions you are asking.

http://mail.python.org/mailman/listinfo/tutor
I entered each line in the shell, and the output shows
C:\Python25\pythonw.exe, so it's not using 2.4. How do I change that?
Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

"Humans aren't the first species to alter the atmosphere; that
distinction belongs to early bacteria, which some two million
years ago, invented photosynthesis.
-- Field Notes from a Catastrophe, Kolbert

--
Web Page: <home.earthlink.net/~mtnviews>
Feb 9 '07 #15

P: n/a
Robert Kern wrote:
W. Watson wrote:
>Here's the program I ran.

### begin
#!/usr/bin/python

# Check mysys

import sys
print sys.executable

### end

It put up a black screen in a flash and disappeared.

Run it from the terminal or execute those lines in the interactive interpreter
in IDLE. Also, you may want to use the Tutor list, instead of comp.lang.python.
It is more geared towards the questions you are asking.

http://mail.python.org/mailman/listinfo/tutor
I just installed python2.5 and the original program that uses 2.4 works.
Thanks for your help. Looks like on this machine that I'll be using 2.4 to
continue my education on python.
Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

"Humans aren't the first species to alter the atmosphere; that
distinction belongs to early bacteria, which some two million
years ago, invented photosynthesis.
-- Field Notes from a Catastrophe, Kolbert

--
Web Page: <home.earthlink.net/~mtnviews>
Feb 9 '07 #16

This discussion thread is closed

Replies have been disabled for this discussion.