[Numpy-discussion] Problems installing not as root

Ryan Gutenkunst rng7 at cornell.edu
Mon Jun 7 13:37:04 CDT 2004


Hi all,

I'm trying to install Numerical Python without root access, and I'm 
having great difficulty.

I'm running Python 2.2.2 (which was installed systemwide by root). I 
used 'python setup.py install --prefix ~/installed' to install numpy and 
I have ~/installed/lib/python2.2/site-packages in my PYTHONPATH.

Initially 'import' was failing, but  creating an empty __init.py__ in 
site-packages/Numeric seems to have fixed that. I still can't seem to 
use any of the functions, though. I get errors like:

Python 2.2.2 (#1, Nov 22 2002, 17:25:34)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-112)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import Numeric
 >>> a = array([1.2, 3.5, -1])
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
NameError: name 'array' is not defined
 >>> a = Numeric.array([1.2, 3.5, -1])
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'array'

I'm new at python, and am completely perplexed. Perhaps I need a more 
complete __init.py__?

Thanks in advance,
Ryan

-- 
Ryan Gutenkunst               |
Cornell Dept. of Physics      |       "It is not the mountain
                               |        we conquer but ourselves."
Clark 535 / (607)255-6068     |        -- Sir Edmund Hillary
AIM: JepettoRNG               |
          http://www.physics.cornell.edu/~rgutenkunst/





More information about the Numpy-discussion mailing list