Too many python installations. Should i remove them all and install the latest?

Νικόλαος Κούρας nikos.gr33k at gmail.com
Fri May 31 13:38:15 EDT 2013


Τη Παρασκευή, 31 Μαΐου 2013 8:24:26 μ.μ. UTC+3, ο χρήστης Ian έγραψε:

> On the other hand, there's really not much harm in leaving it.  Python 
> 2.6 is already your default Python.

> Is this the same system where you recently spent a lot of time
> upgrading your web scripts to Python 3?

Yes, its the same system but it reports python 4 times.
I just hate seeing this:

root at nikos [~]# which python 
/usr/bin/python 
root at nikos [~]# which python2 
/usr/bin/python2 
root at nikos [~]# which python3 
/root/.local/lib/python2.7/bin/python3 
root at nikos [~]# which python3.3 
/root/.local/lib/python2.7/bin/python3.3 
root at nikos [~]# 

and this too:

> root at nikos [~]# ls -al /usr/bin/python* 
> -rwxr-xr-x 3 root root 4864 Feb 22 02:00 /usr/bin/python* 
> lrwxrwxrwx 1 root root    6 Apr  5 20:34 /usr/bin/python2 -> python* 
> -rwxr-xr-x 3 root root 4864 Feb 22 02:00 /usr/bin/python2.6* 
> -rwxr-xr-x 1 root root 1418 Feb 22 02:00 /usr/bin/python2.6-config* 
> lrwxrwxrwx 1 root root   24 Apr  7 22:10 /usr/bin/python3 -> /opt/python3/bin/python3* 
> lrwxrwxrwx 1 root root   16 Apr  5 20:35 /usr/bin/python-config -> python2.6-config* 
> root at nikos [~]# 

How can i fix this please.

i just want to leave 2.7 and downlaod 3.3.2
could you please tell me what commands i should issue?



More information about the Python-list mailing list