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


Groups > comp.lang.python > #46605 > unrolled thread

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

Started byΝικόλαος Κούρας <nikos.gr33k@gmail.com>
First post2013-05-31 08:20 -0700
Last post2013-06-02 19:16 -0700
Articles 20 on this page of 55 — 14 participants

Back to article view | Back to comp.lang.python


Contents

  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

Page 1 of 3  [1] 2 3  Next page →


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

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-05-31 08:20 -0700
SubjectToo many python installations. Should i remove them all and install the latest?
Message-ID<063fc449-5582-4a84-9eea-35e04344dbe0@googlegroups.com>
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
root@nikos [~]# which python3
/root/.local/lib/python2.7/bin/python3
root@nikos [~]# which python3.3
/root/.local/lib/python2.7/bin/python3.3
root@nikos [~]#

Why so many pythons in my system.
Now in the case of my Python3 installation, it looks like i have two parallel installations of Python3, but i don't. One is almost certainly a symlink to the other and not an actual installation.

I'm thinking of:

yum remove python
yum remove python3
yum remove python3.3

and 

yum install python3.3.2 from scratch.

I'm sceptic about uninstalling python 2.x though. Seems to me as a bad idea because most of the core system utilities are written in Python 2.6+. Yum, for example, is a collection of Python 2.6 programs. If i actually do "yum remove python" i will see most of my core system get listed in the uninstall dependency list -- which is a Bad Thing.

But then again i dont like the idea of having too many Python into my system.
What is you opinion?

[toc] | [next] | [standalone]


#46607

FromFábio Santos <fabiosantosart@gmail.com>
Date2013-05-31 16:37 +0100
Message-ID<mailman.2492.1370014635.3114.python-list@python.org>
In reply to#46605

[Multipart message — attachments visible in raw view] — view raw

On 31 May 2013 16:28, "Νικόλαος Κούρας" <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
> root@nikos [~]# which python3
> /root/.local/lib/python2.7/bin/python3
> root@nikos [~]# which python3.3
> /root/.local/lib/python2.7/bin/python3.3
> root@nikos [~]#
>
> Why so many pythons in my system.
> Now in the case of my Python3 installation, it looks like i have two
parallel installations of Python3, but i don't. One is almost certainly a
symlink to the other and not an actual installation.
>
> I'm thinking of:
>
> yum remove python
> yum remove python3
> yum remove python3.3
>
> and
>
> yum install python3.3.2 from scratch.
>
> I'm sceptic about uninstalling python 2.x though. Seems to me as a bad
idea because most of the core system utilities are written in Python 2.6+.
Yum, for example, is a collection of Python 2.6 programs. If i actually do
"yum remove python" i will see most of my core system get listed in the
uninstall dependency list -- which is a Bad Thing.
>
> But then again i dont like the idea of having too many Python into my
system.
> What is you opinion?
> --
> http://mail.python.org/mailman/listinfo/python-list

Check if python3 and python3.3 aren't the same. Run them and look at the
"intro" lines.

[toc] | [prev] | [next] | [standalone]


#46608

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-05-31 08:41 -0700
Message-ID<d6549478-c1bd-4ffd-926c-3770fffa1de7@googlegroups.com>
In reply to#46607
Τη Παρασκευή, 31 Μαΐου 2013 6:37:06 μ.μ. UTC+3, ο χρήστης Fábio Santos έγραψε:

> Check if python3 and python3.3 aren't the same. Run them and look at the "intro" > lines.

root@nikos [~]# python -V
Python 2.6.6
root@nikos [~]# python3 -V
Python 3.3.0
root@nikos [~]# python3.3 -V
Python 3.3.0
root@nikos [~]# python3
Python 3.3.0 (default, Apr  6 2013, 01:53:31) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
root@nikos [~]# python3.3
Python 3.3.0 (default, Apr  6 2013, 01:53:31) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
root@nikos [~]# 

[toc] | [prev] | [next] | [standalone]


#46612

FromIan Kelly <ian.g.kelly@gmail.com>
Date2013-05-31 09:59 -0600
Message-ID<mailman.2496.1370016013.3114.python-list@python.org>
In reply to#46608
On Fri, May 31, 2013 at 9:41 AM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> Τη Παρασκευή, 31 Μαΐου 2013 6:37:06 μ.μ. UTC+3, ο χρήστης Fábio Santos έγραψε:
>
>> Check if python3 and python3.3 aren't the same. Run them and look at the "intro" > lines.
>
> root@nikos [~]# python -V
> Python 2.6.6
> root@nikos [~]# python3 -V
> Python 3.3.0
> root@nikos [~]# python3.3 -V
> Python 3.3.0

So it looks like you have two Python installations, one for Python 2
and one for Python 3.  Why is that too many?

[toc] | [prev] | [next] | [standalone]


#46611

FromMichael Torrie <torriem@gmail.com>
Date2013-05-31 09:55 -0600
Message-ID<mailman.2495.1370015715.3114.python-list@python.org>
In reply to#46605
On 05/31/2013 09:20 AM, Νικόλαος Κούρας wrote:
> Why so many pythons in my system. Now in the case of my Python3
> installation, it looks like i have two parallel installations of
> Python3, but i don't. One is almost certainly a symlink to the other
> and not an actual installation.

Well is it a symlink?

> I'm thinking of:
> 
> yum remove python
> yum remove python3
> yum remove python3.3

What a fantastic way to completely break your os!  Python 2 is is a deep
dependency of CentOS.  You cannot remove it.  Python3 and 3.3 can be
removed of course.

[toc] | [prev] | [next] | [standalone]


#46614

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-05-31 10:10 -0700
Message-ID<db0b9074-3f86-4de6-97bf-d0443d800b92@googlegroups.com>
In reply to#46611
Τη Παρασκευή, 31 Μαΐου 2013 6:55:03 μ.μ. UTC+3, ο χρήστης Michael Torrie έγραψε:
> On 05/31/2013 09:20 AM, Νικόλαος Κούρας wrote:
> 
> > Why so many pythons in my system. Now in the case of my Python3
> 
> > installation, it looks like i have two parallel installations of
> 
> > Python3, but i don't. One is almost certainly a symlink to the other
> 
> > and not an actual installation.
> 
> 
> 
> Well is it a symlink?
> 
> 
> 
> > I'm thinking of:
> 
> > 
> 
> > yum remove python
> 
> > yum remove python3
> 
> > yum remove python3.3
> 
> 
> 
> What a fantastic way to completely break your os!  Python 2 is is a deep
> 
> dependency of CentOS.  You cannot remove it.  Python3 and 3.3 can be
> 
> removed of course.

root@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@nikos [~]# 

so, i should just 'yum remove python3' ?

> root@nikos [~]# python3 -V 
> Python 3.3.0 
> root@nikos [~]# python3.3 -V 
> Python 3.3.0 

whre is that 3.3 anyway that which presents?

[toc] | [prev] | [next] | [standalone]


#46615

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-05-31 10:11 -0700
Message-ID<d083368d-c679-48ce-9969-bf976efccac8@googlegroups.com>
In reply to#46614
root@nikos [~]# yum remove python3
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: python3
Loading mirror speeds from cached hostfile
 * base: ftp.plusline.de
 * extras: ftp.plusline.de
 * updates: ftp.plusline.de
base                                                                                                                          | 3.7 kB     00:00     
extras                                                                                                                        | 3.5 kB     00:00     
updates                                                                                                                       | 3.4 kB     00:00     
updates/primary_db                                                                                                            | 2.6 MB     00:00     
vz-base                                                                                                                       |  951 B     00:00     
vz-updates                                                                                                                    |  951 B     00:00     
No Packages marked for removal
root@nikos [~]# yum remove python3.3
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: python3.3
Loading mirror speeds from cached hostfile
 * base: ftp.plusline.de
 * extras: ftp.plusline.de
 * updates: ftp.plusline.de
No Packages marked for removal
root@nikos [~]# 


i don'y understand, why didnt it removed it neither of ways?

[toc] | [prev] | [next] | [standalone]


#46616

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-05-31 10:16 -0700
Message-ID<98f99db1-d200-4291-a050-cbbb30290d4c@googlegroups.com>
In reply to#46615
root@nikos [~]# which python
/usr/bin/python
root@nikos [~]# which python2
/usr/bin/python2
root@nikos [~]# which python3
/root/.local/lib/python2.7/bin/python3
root@nikos [~]# which python3.3
/root/.local/lib/python2.7/bin/python3.3
root@nikos [~]# 

So i have
2.6
2.7
3
3.3 

4 installations?

[toc] | [prev] | [next] | [standalone]


#46619

FromIan Kelly <ian.g.kelly@gmail.com>
Date2013-05-31 11:33 -0600
Message-ID<mailman.2499.1370021651.3114.python-list@python.org>
In reply to#46616
On Fri, May 31, 2013 at 11:16 AM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> root@nikos [~]# which python
> /usr/bin/python
> root@nikos [~]# which python2
> /usr/bin/python2
> root@nikos [~]# which python3
> /root/.local/lib/python2.7/bin/python3
> root@nikos [~]# which python3.3
> /root/.local/lib/python2.7/bin/python3.3
> root@nikos [~]#
>
> So i have
> 2.6
> 2.7
> 3
> 3.3
>
> 4 installations?

Oh, I see.  The python3 and python3.3 are probably the same binary, though.

In any case, since Python 2.7 and Python 3 are both installed under
/root/.local, it looks like you didn't install them using yum in the
first place.  You probably installed them from source.  If that's the
case, you can probably just rm -rf the python2.7 folder from each of
the /root/.local subfolders that has it.

[toc] | [prev] | [next] | [standalone]


#46621

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-05-31 10:42 -0700
Message-ID<f6163943-106e-4411-8bc5-8760d8388936@googlegroups.com>
In reply to#46619
OMG i gave by mistake 

root@nikos [/]# rm -rf /root/.local/

did i screwed up my remote VPS which i host 10 peoples webpages?

[toc] | [prev] | [next] | [standalone]


#46622

FromIan Kelly <ian.g.kelly@gmail.com>
Date2013-05-31 11:55 -0600
Message-ID<mailman.2500.1370022994.3114.python-list@python.org>
In reply to#46621
On Fri, May 31, 2013 at 11:42 AM, Νικόλαος Κούρας <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?

I don't know, is that where you were keeping the data?

The website still appears to be working, as best I can tell from this
computer.  I've never actually been able to view it from here, because
I get a UnicodeDecodeError at this line:

host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0]

But at least I'm still seeing that error, so the server is still
responding to requests.

[toc] | [prev] | [next] | [standalone]


#46623

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-05-31 11:02 -0700
Message-ID<c5d25712-7b61-44b3-94ef-956fe758df18@googlegroups.com>
In reply to#46622
Τη Παρασκευή, 31 Μαΐου 2013 8:55:51 μ.μ. UTC+3, ο χρήστης Ian έγραψε:
> On Fri, May 31, 2013 at 11:42 AM, Νικόλαος Κούρας <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?
> 
> 
> 
> I don't know, is that where you were keeping the data?
> 
> 
> 
> The website still appears to be working, as best I can tell from this
> 
> computer.  I've never actually been able to view it from here, because
> 
> I get a UnicodeDecodeError at this line:
> 
> 
> 
> host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0]
> 
> 
> 
> But at least I'm still seeing that error, so the server is still
> 
> responding to requests.

Everything seem to be workign as expected, my webiste and the other 10 client websites just chhecked.

luckily i keep my stuff at /homw/nikos so there are untouched.
i hope i havent deleted anything though system need form /root/.local but i guess this is where root's user personal stuff and instalation of python from source where. i ddidnt know if it has soemhtign else.

root@nikos [/]# which python
/usr/bin/python
root@nikos [/]# which python3
/root/.local/lib/python2.7/bin/python3
root@nikos [/]# which python3.3
/usr/local/bin/python3.3
root@nikos [/]# ls -l /usr/bin/py
pydoc             pygettext.py      python            python2.6         python3           
pyflakes          pynche            python2           python2.6-config  python-config     
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*
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@nikos [/]# 

please tell me how to unistall python 2.6 and just keep 2.7
and install 3.3.2 please uisng yum.

yum install python3 doesnt work for me.

[toc] | [prev] | [next] | [standalone]


#46627

FromFábio Santos <fabiosantosart@gmail.com>
Date2013-05-31 23:03 +0100
Message-ID<mailman.2504.1370037812.3114.python-list@python.org>
In reply to#46623

[Multipart message — attachments visible in raw view] — view raw

On 31 May 2013 19:09, "Νικόλαος Κούρας" <nikos.gr33k@gmail.com> wrote:
> > On Fri, May 31, 2013 at 11:42 AM, Νικόλαος Κούρας <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?

Couldn't you check ten websites which are your responsibility, instead of
asking this list?

> Everything seem to be workign as expected, my webiste and the other 10
client websites just chhecked.

Good.

> please tell me how to unistall python 2.6 and just keep 2.7
> and install 3.3.2 please uisng yum.
>
> yum install python3 doesnt work for me.

No. Wait. Why are you uninstalling python 2.6? Because you have too many
python installations?

If you're on a production server with client data, should you really have a
root shell?

[toc] | [prev] | [next] | [standalone]


#46628

FromDavid <bouncingcats@gmail.com>
Date2013-06-01 08:50 +1000
Message-ID<mailman.2505.1370040610.3114.python-list@python.org>
In reply to#46623
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.

[toc] | [prev] | [next] | [standalone]


#46629

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-05-31 16:30 -0700
Message-ID<5dcbe51b-407d-4285-bec8-f3fda7e77742@googlegroups.com>
In reply to#46628
Indeed i have comiled python 2.7 and 3.3 form source after wget and
./configure an make install

but i belive somehting is  mixed up althouh python works ok.

root@nikos [/opt/python3/bin]# ls -al
total 15180
drwxr-xr-x 2 root root    4096 Apr  7 22:09 ./
drwxr-xr-x 6 root root    4096 Apr  7 22:09 ../
lrwxrwxrwx 1 root root       8 Apr  7 22:09 2to3 -> 2to3-3.3*
-rwxr-xr-x 1 root root     103 Apr  7 22:09 2to3-3.3*
lrwxrwxrwx 1 root root       7 Apr  7 22:09 idle3 -> idle3.3*
-rwxr-xr-x 1 root root     101 Apr  7 22:09 idle3.3*
lrwxrwxrwx 1 root root       8 Apr  7 22:09 pydoc3 -> pydoc3.3*
-rwxr-xr-x 1 root root      86 Apr  7 22:09 pydoc3.3*
lrwxrwxrwx 1 root root       9 Apr  7 22:09 python3 -> python3.3*
-rwxr-xr-x 2 root root 7757695 Apr  7 22:09 python3.3*
lrwxrwxrwx 1 root root      17 Apr  7 22:09 python3.3-config ->
python3.3m-config*
-rwxr-xr-x 2 root root 7757695 Apr  7 22:09 python3.3m*
-rwxr-xr-x 1 root root    1980 Apr  7 22:09 python3.3m-config*
lrwxrwxrwx 1 root root      16 Apr  7 22:09 python3-config ->
python3.3-config*
lrwxrwxrwx 1 root root      10 Apr  7 22:09 pyvenv -> pyvenv-3.3*
-rwxr-xr-x 1 root root     238 Apr  7 22:09 pyvenv-3.3*
root@nikos [/opt/python3/bin]# make help
make: *** No rule to make target `help'.  Stop.
root@nikos [/opt/python3/bin]#


cant remove it.

Why you say i cant just yum install python3.3.2

that way it would be installed correcttly automaticall by yum manager
and if later i want to remove ot to install 3.3.3 or a later version i
would have to do yum remove python3.3.2

but yum cant seem to find any python packages to install.

Still i feel my system is a bit messed p and i just want to leave the
2.6 installed and remove all the rest python and then yum install
the_latest_one.

[toc] | [prev] | [next] | [standalone]


#46631

FromChris Angelico <rosuav@gmail.com>
Date2013-06-01 09:39 +1000
Message-ID<mailman.2507.1370043575.3114.python-list@python.org>
In reply to#46629
On Sat, Jun 1, 2013 at 9:30 AM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> Still i feel my system is a bit messed p and i just want to leave the
> 2.6 installed and remove all the rest python and then yum install
> the_latest_one.

It's not half as messed up as... uhh, scratch that. It's not half as
messed up as the testbox I have at work. (Yeah, we'll go with that.
More courteous.) You do not have a problem there that is worth
breaking your system for.

ChrisA

[toc] | [prev] | [next] | [standalone]


#46632

FromIan Kelly <ian.g.kelly@gmail.com>
Date2013-05-31 17:55 -0600
Message-ID<mailman.2509.1370044587.3114.python-list@python.org>
In reply to#46629
On Fri, May 31, 2013 at 5:30 PM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> Indeed i have comiled python 2.7 and 3.3 form source after wget and
> ./configure an make install
>
> but i belive somehting is  mixed up althouh python works ok.
>
> root@nikos [/opt/python3/bin]# ls -al
> ...
> root@nikos [/opt/python3/bin]# make help
> make: *** No rule to make target `help'.  Stop.
> root@nikos [/opt/python3/bin]#
>
>
> cant remove it.

The Makefile would be located in the source directory where you built
Python, not in the installation directory.  But in any case, I don't
think the Python Makefile includes an uninstall option.  If you want
to uninstall Python that was built from source, you need to remove the
files by hand.

> Why you say i cant just yum install python3.3.2

Because CentOS 6 evidently does not provide a package for any version
of Python other than 2.6.  If you want to install another version, you
will need to do it from source.

[toc] | [prev] | [next] | [standalone]


#46634

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-05-31 17:08 -0700
Message-ID<6a741732-76cc-4a4d-9eee-69991f9e4e96@googlegroups.com>
In reply to#46632
Τη Σάββατο, 1 Ιουνίου 2013 2:55:38 π.μ. UTC+3, ο χρήστης Ian έγραψε:
> On Fri, May 31, 2013 at 5:30 PM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> 
> > Indeed i have comiled python 2.7 and 3.3 form source after wget and
> 
> > ./configure an make install
> 
> >
> 
> > but i belive somehting is  mixed up althouh python works ok.
> 
> >
> 
> > root@nikos [/opt/python3/bin]# ls -al
> 
> > ...
> 
> > root@nikos [/opt/python3/bin]# make help
> 
> > make: *** No rule to make target `help'.  Stop.
> 
> > root@nikos [/opt/python3/bin]#
> 
> >
> 
> >
> 
> > cant remove it.
> 
> 
> 
> The Makefile would be located in the source directory where you built
> 
> Python, not in the installation directory.  But in any case, I don't
> 
> think the Python Makefile includes an uninstall option.  If you want
> 
> to uninstall Python that was built from source, you need to remove the
> 
> files by hand.
> 
> 
> 
> > Why you say i cant just yum install python3.3.2
> 
> 
> 
> Because CentOS 6 evidently does not provide a package for any version
> 
> of Python other than 2.6.  If you want to install another version, you
> 
> will need to do it from source.


Do you think that i should have my VPS copmany to install ubuntu for me and use apt-get install python3 ?

I think ubuntu is friendlier.

[toc] | [prev] | [next] | [standalone]


#46637

FromChris Angelico <rosuav@gmail.com>
Date2013-06-01 10:19 +1000
Message-ID<mailman.2512.1370045964.3114.python-list@python.org>
In reply to#46634
On Sat, Jun 1, 2013 at 10:08 AM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> Τη Σάββατο, 1 Ιουνίου 2013 2:55:38 π.μ. UTC+3, ο χρήστης Ian έγραψε:
> > [ snip lots of double-spaced quoted text ]
>
> Do you think that i should have my VPS copmany to install ubuntu for me and use apt-get install python3 ?
>
> I think ubuntu is friendlier.

Probably friendlier than humans will be, considering that Ubuntu
doesn't complain about careless use of Google Groups.

Why not try making your own administrative decisions, rather than
expecting other people to validate you? Are you that short on
confidence that you need someone to say "Yes yes, you're doing the
right thing" and pat you on the back?

ChrisA

[toc] | [prev] | [next] | [standalone]


#46630

FromChris Angelico <rosuav@gmail.com>
Date2013-06-01 09:38 +1000
Message-ID<mailman.2506.1370043490.3114.python-list@python.org>
In reply to#46623
On Sat, Jun 1, 2013 at 8:50 AM, David <bouncingcats@gmail.com> wrote:
> 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...

I believe that indicates that his 'ls' is aliased to 'ls --classify',
which puts * after executables (and / after directories, and @ after
symlinks, also a few others). Not a problem.

ChrisA

[toc] | [prev] | [next] | [standalone]


Page 1 of 3  [1] 2 3  Next page →

Back to top | Article view | comp.lang.python


csiph-web