Roeland Huys | 6 Oct 09:57

install without admin rights


Hi,

I am very interested in my work to switch from Matlab to Numpy.  However,
I want to test some algorithms first.
I tried to install NumPy on one of our corporate servers.  However, I do
not have root access, so i did following:

tar -xvzf numpy-1.2.0.tar.gz   [OK]
cd numpy-1.2.0
python setup.py build   [OK]
set PYTHONPATH=$HOME/pythonlib
mv numpy ~/pythonlib
python
import numpy   [ FAILS!]

Could you tell me how I can install NumPy on my local account, (without
admin rights) ?

Thanks,

Roeland.
Matthieu Brucher | 6 Oct 10:10

Re: install without admin rights

python setup.py install --prefix=$HOME/local/lib
set PYTHONPATH=$HOME/local/lib/python2.5/site-packages

and you're good to go. This is how I install everything and it's been
working for several years now ;)

Matthieu

2008/10/6 Roeland Huys <roeland <at> huysmus.be>:
>
> Hi,
>
> I am very interested in my work to switch from Matlab to Numpy.  However,
> I want to test some algorithms first.
> I tried to install NumPy on one of our corporate servers.  However, I do
> not have root access, so i did following:
>
> tar -xvzf numpy-1.2.0.tar.gz   [OK]
> cd numpy-1.2.0
> python setup.py build   [OK]
> set PYTHONPATH=$HOME/pythonlib
> mv numpy ~/pythonlib
> python
> import numpy   [ FAILS!]
>
> Could you tell me how I can install NumPy on my local account, (without
> admin rights) ?
>
> Thanks,
>
(Continue reading)

| 6 Oct 10:27
Favicon

Re: install without admin rights

Hi Roeland

2008/10/6 Roeland Huys <roeland <at> huysmus.be>:
> tar -xvzf numpy-1.2.0.tar.gz   [OK]
> cd numpy-1.2.0
> python setup.py build   [OK]

python setup.py install --prefix=${HOME}

> set PYTHONPATH=$HOME/pythonlib

export PYTHONPATH=${HOME}/lib/python2.5/site-packages

Cheers
Stéfan
Roeland Huys | 6 Oct 11:23

Re: install without admin rights

Thanks!

Unfortunately, I got following error:

>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File
"/imec/other/neuray2/lib64/python2.3/site-packages/numpy/__init__.py",
line 125, in ?
    import add_newdocs
  File
"/imec/other/neuray2/lib64/python2.3/site-packages/numpy/add_newdocs.py",
line 9, in ?
    from lib import add_newdoc
  File
"/imec/other/neuray2/lib64/python2.3/site-packages/numpy/lib/__init__.py",
line 22, in ?
    from arrayterator import *
  File "numpy/lib/arrayterator.py", line 89
    slice_ = tuple(slice(*t) for t in zip(
                               ^
SyntaxError: invalid syntax

I have python 2.3 installed on the server.

Thanks,

Roeland

(Continue reading)

Matthieu Brucher | 6 Oct 11:26

Re: install without admin rights

Hi again,

That's because Python 2.3 is not supported by numpy 1.2 anymore (see
the release notes) :|
Try installing a Python 2.5 locally, as with numpy.

Matthieu

2008/10/6 Roeland Huys <roeland <at> huysmus.be>:
> Thanks!
>
> Unfortunately, I got following error:
>
>>>> import numpy
> Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>  File
> "/imec/other/neuray2/lib64/python2.3/site-packages/numpy/__init__.py",
> line 125, in ?
>    import add_newdocs
>  File
> "/imec/other/neuray2/lib64/python2.3/site-packages/numpy/add_newdocs.py",
> line 9, in ?
>    from lib import add_newdoc
>  File
> "/imec/other/neuray2/lib64/python2.3/site-packages/numpy/lib/__init__.py",
> line 22, in ?
>    from arrayterator import *
>  File "numpy/lib/arrayterator.py", line 89
>    slice_ = tuple(slice(*t) for t in zip(
(Continue reading)

David Cournapeau | 6 Oct 14:14

Re: install without admin rights

Matthieu Brucher wrote:
> Hi again,
>
> That's because Python 2.3 is not supported by numpy 1.2 anymore (see
> the release notes) :|
> Try installing a Python 2.5 locally, as with numpy.
>   

Alternatively, you can install numpy 1.1.x (numpy 1.1* still support
python 2.3).

cheers,

David

Gmane