How can I use numpy without installing it?

后端 未结 4 1014
醉梦人生
醉梦人生 2021-01-04 20:22

I console access to a computer where I do not have root nor sudo rights.

Python version is 2.5.2 and numpy is not available. I cannot use python setup.py install --u

4条回答
  •  长发绾君心
    2021-01-04 21:19

    You can use python's distutils (which is what python setup.py runs) install to a local directory, which must be added to your PYTHONPATH. E.G.,

    python setup.py install --prefix=~/local
    

    which uses a directory hierarchy ~/local/lib/python2.x. (Or you can use --home=

    to avoid the python2.x part)

提交回复
热议问题