From: Jeffery D. C. <jco...@ea...> - 2004-06-07 21:14:36
|
On Monday 07 June 2004 02:36 pm, Ryan Gutenkunst wrote: > 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. Maybe this will work: eliminate the __init__.py (and __init__.pyc) that you created and add the following to your PATH instead: ~/installed/lib/python2.2/site-packages/Numeric > > 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 -- Jeff |