python - Installing Numpy locally -


i have account in remote computer without root permissions , needed install local version of python (the remote computer has version of python incompatible codes have), numpy , scipy there. i've been trying install numpy locally since yesterday, no success.

i installed local version of python (2.7.3) in /home/myusername/.local/, access version of python doing /home/myusername/.local/bin/python. tried 2 ways of installing numpy:

  1. i downloaded lastest stable version of numpy official webpage, unpacked it, got unpacked folder , did: /home/myusername/.local/bin/python setup.py install --prefix=/home/myusername/.local. however, following error, followed series of other errors (deriving one):

    gcc -pthread -shared build/temp.linux-x86_64-2.7/numpy/core/blasdot/_dotblas.o -l/usr/local/lib -lbuild/temp.linux-x86_64-2.7 -lptf77blas -lptcblas -latlas  -o build/lib.linux-x86_64-2.7/numpy/core/_dotblas.so /usr/bin/ld: /usr/local/lib/libptcblas.a(cblas_dptgemm.o): relocation  r_x86_64_32 against `a local symbol' can not used when making shared  object; recompile -fpic 

    not knowing meant (except error apparently has lapack library), did same command above, putting ldflags='-fpic', suggested error i.e., did ldflags="-fpic" /home/myusername/.local/bin/python setup.py install --prefix=/home/myusername/.local. however, got same error (except prefix -fpic addeded after gcc command above).

  2. i tried installing using pip, i.e., doing /home/myusername/.local/bin/pip install numpy /after instaling pip in local path). however, exact same error.

i searched on web, none of errors seemed similar mine. first guess has piece of code needs root permissions executed, or maybe problem version of lapack libraries.

help, anyone?

the error message telling atlas library has not been built -fpic flag. means cannot linked shared library python extension modules. need rebuild atlas -fpic flag. atlas documentation describes how so.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -