Can't see numpy etc after upgrading Python on Ubuntu

Chris Angelico rosuav at gmail.com
Tue Dec 20 04:13:44 EST 2016


On Tue, Dec 20, 2016 at 7:36 PM, Vincent Vande Vyvre
<vincent.vande.vyvre at telenet.be> 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 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


More information about the Python-list mailing list