Permissions on python setup.py install
Kent Johnson
kent37 at tds.net
Tue Feb 12 14:35:21 EST 2008
Labitt, Bruce wrote:
> I’m trying install numpy on a linux box. Everything went ok until the
> “end” when setup complained about having insufficient permissions. I
> then installed as root. The install seemed to go ok, but the example
> file in the readme doesn’t run.
>
> $ python –c ‘import numpy; numpy.test()’
>
> Running from numpy source directory
>
> Traceback (most recent call last):
>
> File “<string>”, line 1, in?
>
> AttributeError: ‘module’ object has no attribute ‘test’
>
> What should I look for? TIA
My guess is there is something called numpy in the dir you are running
from that is being imported instead of the actual numpy package which
should be somewhere else now (somewhere like
/path/to/python/lib/site-packages/, the actual path is os-dependent).
python -c 'import numpy; print numpy.__file__'
will show you where numpy is being imported from. Try running the test
from a different dir than the numpy install dir - your home dir should work.
Kent
More information about the gnhlug-discuss
mailing list