2

I've downloaded the python binary file and then opened it in my home folder using

tar xzvf Python-2.7.3.tgz

This seems to work and when I run

~/Python-2.7.3/python 

it works great. However when I try to import numpy, apparently it is not included. I've downloaded the numpy binary and opened it in my home directory but python still will not find it. Is there somewhere special that I have to put the numpy folder so that Python will find it?

user1696811
  • 941
  • 4
  • 10
  • 20
  • You won't have the Python stdlib this way, either. You're in for a whole lot of pain... maybe you can get the admin to install it for you? – Keith Jan 16 '13 at 17:31
  • Did you try what was listed in this post? http://stackoverflow.com/a/7465532/1343005 – Ci3 Jan 16 '13 at 17:33
  • It's unlikely, I'm not the only person using the computer and they're doing me a big favour letting me use it so I'd rather not annoy them! – user1696811 Jan 16 '13 at 17:33
  • does the system have python installed already, or do you *need* to use a local version? – Corey Goldberg Jan 16 '13 at 17:43
  • the computer has python 2.5 installed already but I need python 2.6 or above really – user1696811 Jan 16 '13 at 17:45

1 Answers1

1

Use pythonbrew to install Python into your $HOME folder:

$ pythonbrew install 2.7.2

Then switch your current shell to use your local Python install:

$ pythonbrew use 2.7.2

Now you should be able to install NumPy:

$ pip install numpy
Keith
  • 42,110
  • 11
  • 57
  • 76
jtriley
  • 591
  • 4
  • 5