Can't see numpy etc after upgrading Python on Ubuntu

Chris Angelico rosuav at
Tue Dec 20 04:33:27 EST 2016

On Tue, Dec 20, 2016 at 8:28 PM, Vincent Vande Vyvre
<vincent.vande.vyvre at> 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
>> unaffected by this.
>> ChrisA
> Not sure, when the OP enter python into a terminal he have:
> peter at sirboris:~$ python
> Python 2.7.12 (default, Dec 11 2016, 22:16:38)
> So, python point now to the new one. No? VVV

So when you type 'python' at the command line, it searches $PATH. But
you don't need to worry about system scripts; they'll use an explicit
"#!/usr/bin/python", which means they'll keep running 2.7.3.

(Unless, of course, the goal of upgrading was actually to change the
system Python, in which case you want to do things _very_


More information about the Python-list mailing list