python command running old version

T

Tim Edwards

My brain is running in n00b mode this morning...must find coffee.

I upgraded python this morning and entering python from the command
line runs the old version.

Just looked and it appears the old version is in /usr/bin while the
new one is in /usr/local/bin/

Besides changing the path order, how do I ensure it runs the new
version? I'm sure I'll bang my head on the desk in shame as soon as
I'm reminded.

Thanks.
 
A

Aahz

I upgraded python this morning and entering python from the command
line runs the old version.

Just looked and it appears the old version is in /usr/bin while the
new one is in /usr/local/bin/

Besides changing the path order, how do I ensure it runs the new
version? I'm sure I'll bang my head on the desk in shame as soon as
I'm reminded.

You probably want to create an alias for command-line usage; scripts
should use the full path to the interpreter you want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,049
Members
47,654
Latest member
LannySinge

Latest Threads

Top