Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #46628

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

References (4 earlier) <98f99db1-d200-4291-a050-cbbb30290d4c@googlegroups.com> <mailman.2499.1370021651.3114.python-list@python.org> <f6163943-106e-4411-8bc5-8760d8388936@googlegroups.com> <mailman.2500.1370022994.3114.python-list@python.org> <c5d25712-7b61-44b3-94ef-956fe758df18@googlegroups.com>
Date 2013-06-01 08:50 +1000
Subject Re: Too many python installations. Should i remove them all and install the latest?
From David <bouncingcats@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2505.1370040610.3114.python-list@python.org> (permalink)

Show all headers | View raw


On 01/06/2013, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
>
> Why so many pythons in my system.

Explained below, underneath each pertinent info you provided.

First, let's discuss Python 2.6:

On 01/06/2013, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> I'am using CentOS v6.4 on my VPS and hence 'yum' install manager and i just
> tried:
>
> Code:
> root@nikos [~]# which python
> /usr/bin/python

This is the version of that CentOS 6 is using. It is Python 2.6 as
shown in the next paragraph. This version is essential to CentOS 6.
This cannot be changed or upgraded without so much work that no sane
person on the planet would bother. Stop worrying about it.

On 01/06/2013, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
>
> root@nikos [~]# python -V
> Python 2.6.6

See above.

On 01/06/2013, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
>
> root@nikos [/]# ls -l /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*
[... python3 line removed for clarity ...]
> lrwxrwxrwx 1 root root   16 Apr  5 20:35 /usr/bin/python-config ->
> python2.6-config*

Apart from the bizarre trailing '*' characters which for which I have
no sane explanation, all of the above is standard for Python 2.6 which
is essential for Centos 6. Stop worrying about it.

Now let's talk about yum:

On 01/06/2013, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> root@nikos [~]# yum remove python3
[...]
> No Match for argument: python3
[...]
> root@nikos [~]# yum remove python3.3
[...]
> No Match for argument: python3.3
>
> i don'y understand, why didnt it removed it neither of ways?

Your yum setup does not find python3 or python3.3 packages.
So you could not have used yum to install it.
Therefore, you cannot use yum to remove it.
And, you cannot use yum to install it.

Now let's talk about Python 2.7:

On 01/06/2013, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> root@nikos [~]# which python3
> /root/.local/lib/python2.7/bin/python3

There's a python2.7 directory there under /root/.local. Maybe you
installed python2.7 from source using some kind of 'make install'
command (ie not using yum)? If so, and you wish to remove it, there
will probably be another 'make' command to remove it, which must be
run from the same directory that you ran 'make install'. Try 'make
help' in that directory. Maybe someone else can explain why there is a
python3 command under that directory, because I can't.

Now let's talk about Python 3:

On 01/06/2013, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
>
> root@nikos [~]# ls -al /usr/bin/python*
[...]
> lrwxrwxrwx 1 root root   24 Apr  7 22:10 /usr/bin/python3 ->
> /opt/python3/bin/python3*

There's a python3 directory there under /opt. Maybe you installed
python3 from source using some kind of 'make install' command (ie not
using yum)? If so, and you wish to remove it, there will probably be
another 'make' command to remove it, which must be run from the same
directory that you ran 'make install'. Try 'make help' in that
directory.

On 01/06/2013, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
>
> OMG i gave by mistake
>
> root@nikos [/]# rm -rf /root/.local/
>
> did i screwed up my remote VPS which i host 10 peoples webpages?

When trying something you don't fully understand, first experiment
somewhere you don't care if bad things happen.

On 01/06/2013, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> Should i remove them all and install the latest?

No. Different versions do different things. Don't install or remove
them until you understand the different things they do.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-05-31 08:20 -0700
  Re: Too many python installations. Should i remove them all and install the latest? Fábio Santos <fabiosantosart@gmail.com> - 2013-05-31 16:37 +0100
    Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-05-31 08:41 -0700
      Re: Too many python installations. Should i remove them all and install the latest? Ian Kelly <ian.g.kelly@gmail.com> - 2013-05-31 09:59 -0600
  Re: Too many python installations. Should i remove them all and install the latest? Michael Torrie <torriem@gmail.com> - 2013-05-31 09:55 -0600
    Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-05-31 10:10 -0700
      Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-05-31 10:11 -0700
        Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-05-31 10:16 -0700
          Re: Too many python installations. Should i remove them all and install the latest? Ian Kelly <ian.g.kelly@gmail.com> - 2013-05-31 11:33 -0600
            Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-05-31 10:42 -0700
              Re: Too many python installations. Should i remove them all and install the latest? Ian Kelly <ian.g.kelly@gmail.com> - 2013-05-31 11:55 -0600
                Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-05-31 11:02 -0700
                Re: Too many python installations. Should i remove them all and install the latest? Fábio Santos <fabiosantosart@gmail.com> - 2013-05-31 23:03 +0100
                Re: Too many python installations. Should i remove them all and install the latest? David <bouncingcats@gmail.com> - 2013-06-01 08:50 +1000
                Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-05-31 16:30 -0700
                Re: Too many python installations. Should i remove them all and install the latest? Chris Angelico <rosuav@gmail.com> - 2013-06-01 09:39 +1000
                Re: Too many python installations. Should i remove them all and install the latest? Ian Kelly <ian.g.kelly@gmail.com> - 2013-05-31 17:55 -0600
                Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-05-31 17:08 -0700
                Re: Too many python installations. Should i remove them all and install the latest? Chris Angelico <rosuav@gmail.com> - 2013-06-01 10:19 +1000
                Re: Too many python installations. Should i remove them all and install the latest? Chris Angelico <rosuav@gmail.com> - 2013-06-01 09:38 +1000
                Re: Too many python installations. Should i remove them all and install the latest? David <bouncingcats@gmail.com> - 2013-06-01 10:18 +1000
                Re: Too many python installations. Should i remove them all and install the latest? Chris Angelico <rosuav@gmail.com> - 2013-06-01 10:24 +1000
                Re: Too many python installations. Should i remove them all and install the latest? Chris Angelico <rosuav@gmail.com> - 2013-06-03 13:18 +1000
                Re: Too many python installations. Should i remove them all and install the latest? nagia.retsina@gmail.com - 2013-06-03 08:00 -0700
                Re: Too many python installations. Should i remove them all and install the latest? Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-03 12:26 +0100
                Re: Too many python installations. Should i remove them all and install the latest? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-01 01:43 +0100
                Re: Too many python installations. Should i remove them all and install the latest? Michael Torrie <torriem@gmail.com> - 2013-05-31 18:59 -0600
                Re: Too many python installations. Should i remove them all and install the latest? Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-03 12:29 -0600
      Re: Too many python installations. Should i remove them all and install the latest? Ian Kelly <ian.g.kelly@gmail.com> - 2013-05-31 11:24 -0600
        Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-05-31 10:38 -0700
  Re: Too many python installations. Should i remove them all and install the latest? Alister <alister.ware@ntlworld.com> - 2013-05-31 17:24 +0000
  Re: Too many python installations. Should i remove them all and install the latest? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-31 20:15 -0400
    Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-05-31 22:35 -0700
      Re: Too many python installations. Should i remove them all and install the latest? Chris Angelico <rosuav@gmail.com> - 2013-06-01 16:18 +1000
        Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-01 00:51 -0700
          Re: Too many python installations. Should i remove them all and install the latest? Chris Angelico <rosuav@gmail.com> - 2013-06-01 18:00 +1000
          Re: Too many python installations. Should i remove them all and install the latest? Cameron Simpson <cs@zip.com.au> - 2013-06-01 18:21 +1000
            Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-01 01:30 -0700
              Re: Too many python installations. Should i remove them all and install the latest? Cameron Simpson <cs@zip.com.au> - 2013-06-02 14:36 +1000
              Re: Too many python installations. Should i remove them all and install the latest? Chris Angelico <rosuav@gmail.com> - 2013-06-02 14:41 +1000
                Re: Too many python installations. Should i remove them all and install the latest? Walter Hurry <walterhurry@lavabit.com> - 2013-06-03 14:35 +0000
                Re: Too many python installations. Should i remove them all and install the latest? nagia.retsina@gmail.com - 2013-06-03 08:01 -0700
                Re: Too many python installations. Should i remove them all and install the latest? Michael Torrie <torriem@gmail.com> - 2013-06-03 12:37 -0600
                Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-03 23:33 -0700
                Re: Too many python installations. Should i remove them all and install the latest? Fábio Santos <fabiosantosart@gmail.com> - 2013-06-04 08:08 +0100
                Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 00:11 -0700
                Re: Too many python installations. Should i remove them all and install the latest? alex23 <wuwei23@gmail.com> - 2013-06-04 00:21 -0700
                Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 00:39 -0700
                Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 01:20 -0700
                Re: Too many python installations. Should i remove them all and install the latest? Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 02:49 -0700
                Re: Too many python installations. Should i remove them all and install the latest? Fábio Santos <fabiosantosart@gmail.com> - 2013-06-04 12:26 +0100
                Re: Too many python installations. Should i remove them all and install the latest? Fábio Santos <fabiosantosart@gmail.com> - 2013-06-04 12:29 +0100
                Re: Too many python installations. Should i remove them all and install the latest? Michael Torrie <torriem@gmail.com> - 2013-06-04 08:32 -0600
          Re: Too many python installations. Should i remove them all and install the latest? Michael Torrie <torriem@gmail.com> - 2013-06-02 11:33 -0600
  Re: Too many python installations. Should i remove them all and install the latest? alex23 <wuwei23@gmail.com> - 2013-06-02 19:16 -0700

csiph-web