Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'charset:iso-8859-7': 0.04; 'root': 0.05; 'python3': 0.07; 'upgraded': 0.07; 'happen.': 0.09; 'skip:/ 10': 0.09; 'trailing': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '-rf': 0.16; '2.6:': 0.16; '2.7:': 0.16; 'argument:': 0.16; "can't.": 0.16; 'sane': 0.16; 'subject: \n ': 0.16; 'subject:install': 0.16; 'subject:remove': 0.16; 'tried:': 0.16; 'subject:python': 0.16; 'essential': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'trying': 0.19; 'packages.': 0.19; 'things.': 0.19; 'command': 0.22; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'directory.': 0.24; 'planet': 0.24; 'versions': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'source': 0.25; 'first,': 0.26; 'shown': 0.26; 'code:': 0.26; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'host': 0.29; 'characters': 0.30; 'message-id:@mail.gmail.com': 0.30; 'didnt': 0.31; 'directory,': 0.31; 'explained': 0.31; 'python2.7': 0.31; 'subject:skip:i 10': 0.31; 'probably': 0.32; 'subject:all': 0.32; 'run': 0.32; 'another': 0.32; 'maybe': 0.34; 'subject:the': 0.34; 'could': 0.34; 'info': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; '2.6': 0.36; 'next': 0.36; 'subject:?': 0.36; 'should': 0.36; 'so,': 0.37; 'remote': 0.38; 'manager': 0.38; 'explain': 0.39; 'does': 0.39; 'bad': 0.39; 'changed': 0.39; 'system.': 0.39; 'remove': 0.60; 'no.': 0.61; 'first': 0.61; 'discuss': 0.62; 'kind': 0.63; 'therefore,': 0.64; 'different': 0.65; 'to:addr:gmail.com': 0.65; 'subject:. ': 0.67; 'wish': 0.70; 'apart': 0.72; "'make'": 0.84; '(ie': 0.84; 'experiment': 0.84; 'skip:/ 30': 0.84; 'subject:latest': 0.84; 'underneath': 0.84; 'understand,': 0.84; 'mistake': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=S6oS3R64sP00LQixhXozyb2aibhT575TYmKm/R287sY=; b=pYsBUOpfCQyasL60yZ/XxFSk7xf6X+eL3CQ44VBJsIgqZOXem1e02tladeMynU2Ddo LZ+PjU67BQ2L2sdFhH4z0nz0HPGqQ/RzEHJcFdFXFtPCXiY4FUUXsDrZsXo4itiBcB5m ZHMwxgalE97sij4ySvghB87tEsY7B9+1yzr+YsN7WqoiHoyUJlDlaB0bVjCH/AdRyqLZ uNkas9KKyemK8HEWuD4ZVYqjUSg/T0HaUl0oS6bY9sGl6/BY/XGwZQsWKiQyPrBF6lA+ RCGydRgVSYm8l60wOA2wrTvuItH77AbNZhlUeqslQUcMiVAZbS11VrqG/qzcNb69wToU Unvw== MIME-Version: 1.0 X-Received: by 10.58.234.134 with SMTP id ue6mr12292412vec.20.1370040600919; Fri, 31 May 2013 15:50:00 -0700 (PDT) In-Reply-To: References: <063fc449-5582-4a84-9eea-35e04344dbe0@googlegroups.com> <98f99db1-d200-4291-a050-cbbb30290d4c@googlegroups.com> Date: Sat, 1 Jun 2013 08:50:00 +1000 Subject: Re: Too many python installations. Should i remove them all and install the latest? From: David To: =?ISO-8859-7?B?zenq/Ovh7/Igyu/98eHy?= Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 117 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370040610 news.xs4all.nl 15912 [2001:888:2000:d::a6]:48058 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46628 On 01/06/2013, =CD=E9=EA=FC=EB=E1=EF=F2 =CA=EF=FD=F1=E1=F2 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, =CD=E9=EA=FC=EB=E1=EF=F2 =CA=EF=FD=F1=E1=F2 wrote: > I'am using CentOS v6.4 on my VPS and hence 'yum' install manager and i ju= st > 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, =CD=E9=EA=FC=EB=E1=EF=F2 =CA=EF=FD=F1=E1=F2 wrote: > > root@nikos [~]# python -V > Python 2.6.6 See above. On 01/06/2013, =CD=E9=EA=FC=EB=E1=EF=F2 =CA=EF=FD=F1=E1=F2 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, =CD=E9=EA=FC=EB=E1=EF=F2 =CA=EF=FD=F1=E1=F2 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, =CD=E9=EA=FC=EB=E1=EF=F2 =CA=EF=FD=F1=E1=F2 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, =CD=E9=EA=FC=EB=E1=EF=F2 =CA=EF=FD=F1=E1=F2 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, =CD=E9=EA=FC=EB=E1=EF=F2 =CA=EF=FD=F1=E1=F2 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, =CD=E9=EA=FC=EB=E1=EF=F2 =CA=EF=FD=F1=E1=F2 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.