Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-20 Thread ozpeterballard
OK thanks both of you. I didn't realise there was a distinction between system python and other (user/personal) python. Yes, python2.7.3 is still there in /usr/bin/python . /usr/bin/python appears to be getting numpy and scipy from /usr/lib/python2.7/dist-packages . So I added that to PYTHONPAT

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-20 Thread Chris Angelico
On Tue, Dec 20, 2016 at 8:28 PM, Vincent Vande Vyvre wrote: >>> The link /usr/bin/python *MUST* point to the 2.7.3 version, if not, >>> restore >>> it. >> >> It does. When he installs pip via apt, it manages his original 2.7.3. >> Anything that explicitly shebangs to /usr/bin/python will be >> una

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-20 Thread Vincent Vande Vyvre
Le 20/12/16 à 10:13, Chris Angelico a écrit : On Tue, Dec 20, 2016 at 7:36 PM, Vincent Vande Vyvre wrote: It seems you have shadowed your default python2 with the new one. A very bad idea. Only because /usr/local/bin is ahead of /usr/bin in PATH. That's the problem. The link /usr/bin/pytho

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-20 Thread Chris Angelico
On Tue, Dec 20, 2016 at 7:36 PM, Vincent Vande Vyvre wrote: > It seems you have shadowed your default python2 with the new one. A very bad > idea. Only because /usr/local/bin is ahead of /usr/bin in PATH. > The link /usr/bin/python *MUST* point to the 2.7.3 version, if not, restore > it. It doe

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-20 Thread Vincent Vande Vyvre
Le 20/12/16 à 08:45, Chris Angelico a écrit : On Tue, Dec 20, 2016 at 5:19 PM, wrote: Thanks Chris for replying, but it didn't work. The upgrade happened, but still python can't see numpy! So it seems to be a path problem. The numpy (and scipy and matplotlib) files are there, so surely in pr

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-19 Thread Chris Angelico
On Tue, Dec 20, 2016 at 5:19 PM, wrote: > Thanks Chris for replying, but it didn't work. The upgrade happened, but > still python can't see numpy! So it seems to be a path problem. The numpy > (and scipy and matplotlib) files are there, so surely in principle it's a > simple matter of pointing

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-19 Thread ozpeterballard
Thanks Chris for replying, but it didn't work. The upgrade happened, but still python can't see numpy! So it seems to be a path problem. The numpy (and scipy and matplotlib) files are there, so surely in principle it's a simple matter of pointing my python path at them? Any ideas how? (I shoul

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-19 Thread Chris Angelico
On Tue, Dec 20, 2016 at 4:08 PM, wrote: > I use Python on Ubuntu 12.04. Recently I upgraded Python from 2.7.3 to > 2.7.12. I did the upgrade via the source, i.e. download (from > https://www.python.org/downloads/release/python-2712/ ), tar, ./config, sudo > make install. > > After the upgrade,

Can't see numpy etc after upgrading Python on Ubuntu

2016-12-19 Thread ozpeterballard
Hi all. I hope this is the right place. It seems more like a Python problem than an Ubuntu problem. I use Python on Ubuntu 12.04. Recently I upgraded Python from 2.7.3 to 2.7.12. I did the upgrade via the source, i.e. download (from https://www.python.org/downloads/release/python-2712/ ), tar,