Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

4,452 views
Skip to first unread message

Νικόλαος Κούρας

unread,
May 31, 2013, 11:20:54 AM5/31/13
to
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?

Fábio Santos

unread,
May 31, 2013, 11:37:06 AM5/31/13
to Νικόλαος Κούρας, pytho...@python.org

> --
> 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.

Νικόλαος Κούρας

unread,
May 31, 2013, 11:41:52 AM5/31/13
to
Τη Παρασκευή, 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 [~]#

Michael Torrie

unread,
May 31, 2013, 11:55:03 AM5/31/13
to pytho...@python.org
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.

Ian Kelly

unread,
May 31, 2013, 11:59:30 AM5/31/13
to Python
On Fri, May 31, 2013 at 9:41 AM, Νικόλαος Κούρας <nikos...@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?

Νικόλαος Κούρας

unread,
May 31, 2013, 1:10:05 PM5/31/13
to
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?

Νικόλαος Κούρας

unread,
May 31, 2013, 1:11:06 PM5/31/13
to
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?

Νικόλαος Κούρας

unread,
May 31, 2013, 1:16:44 PM5/31/13
to
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?

Alister

unread,
May 31, 2013, 1:24:19 PM5/31/13
to
Do not "Yum Remove Python" as you suggest this will remove vital system
tools.

I have both Python 2.7 & python3 (Python 3.3) on my Fedora system with no
problems so i would not worry



--
No question is so difficult as one to which the answer is obvious.

Ian Kelly

unread,
May 31, 2013, 1:24:26 PM5/31/13
to Python
On Fri, May 31, 2013 at 11:10 AM, Νικόλαος Κούρας <nikos...@gmail.com> wrote:
> 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' ?

If you're not using it, and if yum isn't going to remove anything else
that has it as a dependency, then go ahead.

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?

Ian Kelly

unread,
May 31, 2013, 1:33:20 PM5/31/13
to Python
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.

Νικόλαος Κούρας

unread,
May 31, 2013, 1:38:15 PM5/31/13
to
Τη Παρασκευή, 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@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 [~]#

and this too:

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

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?

Νικόλαος Κούρας

unread,
May 31, 2013, 1:42:05 PM5/31/13
to
OMG i gave by mistake

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

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

Ian Kelly

unread,
May 31, 2013, 1:55:51 PM5/31/13
to Python
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.

Νικόλαος Κούρας

unread,
May 31, 2013, 2:02:50 PM5/31/13
to
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.

Fábio Santos

unread,
May 31, 2013, 6:03:28 PM5/31/13
to Νικόλαος Κούρας, pytho...@python.org


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

David

unread,
May 31, 2013, 6:50:00 PM5/31/13
to Νικόλαος Κούρας, pytho...@python.org
On 01/06/2013, Νικόλαος Κούρας <nikos...@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...@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...@gmail.com> wrote:
>
> root@nikos [~]# python -V
> Python 2.6.6

See above.

On 01/06/2013, Νικόλαος Κούρας <nikos...@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...@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...@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...@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...@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...@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.

Νικόλαος Κούρας

unread,
May 31, 2013, 7:30:48 PM5/31/13
to
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.

Chris Angelico

unread,
May 31, 2013, 7:38:02 PM5/31/13
to pytho...@python.org
On Sat, Jun 1, 2013 at 8:50 AM, David <bounci...@gmail.com> wrote:
> On 01/06/2013, Νικόλαος Κούρας <nikos...@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

Chris Angelico

unread,
May 31, 2013, 7:39:27 PM5/31/13
to pytho...@python.org
On Sat, Jun 1, 2013 at 9:30 AM, Νικόλαος Κούρας <nikos...@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

Ian Kelly

unread,
May 31, 2013, 7:55:38 PM5/31/13
to Python
On Fri, May 31, 2013 at 5:30 PM, Νικόλαος Κούρας <nikos...@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.

Νικόλαος Κούρας

unread,
May 31, 2013, 8:08:38 PM5/31/13
to
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.
Message has been deleted

David

unread,
May 31, 2013, 8:18:05 PM5/31/13
to Chris Angelico, pytho...@python.org
Ah, old skool. I have seen that before now that you mention it. Thanks
for the correction.
I knew I didn't have all the answers, but felt that I'd try some pig
wrestling anyway.

Chris Angelico

unread,
May 31, 2013, 8:19:15 PM5/31/13
to pytho...@python.org
On Sat, Jun 1, 2013 at 10:08 AM, Νικόλαος Κούρας <nikos...@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

Chris Angelico

unread,
May 31, 2013, 8:24:22 PM5/31/13
to pytho...@python.org
Yeah. I know that particular one because I have l aliased to ls -CF
(aka --columns --classify), mainly because it came that way as a
commented-out entry in my first Debian. Have since become quite
accustomed to it; to me, 'l' means 'look' (I do love my MUDs), so I'm
considering aliasing 'gl' to 'pwd' so that I can 'glance' too :)

Hmm. What other MUD commands have obvious Unix equivalents?

say --> echo
emote --> python -c
attack --> sudo rm -f

ChrisA

Mark Lawrence

unread,
May 31, 2013, 8:43:30 PM5/31/13
to pytho...@python.org
On 01/06/2013 01:18, David wrote:
> I knew I didn't have all the answers, but felt that I'd try some pig
> wrestling anyway.
>

To carry on with the animal analogy, the OP appears to me a very
dangerous combination of headless chicken and bull in a china shop.

--
"Steve is going for the pink ball - and for those of you who are
watching in black and white, the pink is next to the green." Snooker
commentator 'Whispering' Ted Lowe.

Mark Lawrence

Michael Torrie

unread,
May 31, 2013, 8:59:39 PM5/31/13
to pytho...@python.org
On 05/31/2013 12:02 PM, Νικόλαος Κούρας wrote:
> please tell me how to unistall python 2.6 and just keep 2.7
> and install 3.3.2 please uisng yum.

Python 2.6 is required for CentOS to function. You simply cannot remove
it. You can't replace it with 2.7 either. You can install 2.7
alongside it if you want (seems like you have).

Νικόλαος Κούρας

unread,
Jun 1, 2013, 1:35:05 AM6/1/13
to
Τη Σάββατο, 1 Ιουνίου 2013 3:15:22 π.μ. UTC+3, ο χρήστης Dennis Lee Bieber έγραψε:
> On Fri, 31 May 2013 08:20:54 -0700 (PDT), �������� ������
>
> <nikos...@gmail.com> declaimed the following in
>
> gmane.comp.python.general:
>
>
>
> > 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 [~]#
>
>
>
> I'd be concerned that those 3/3.3 entries are showing up in a 2.7
>
> installation directory!
>
>
>
> Other than that, I'd see if some of those of softlinks (or even
>
> hardlinks) to another... That is: /usr/bin/python maybe links to your
>
> python3.3, and your python3 also links to the python3.3 -- meaning you
>
> really only have one Python in the 3.x branch (you didn't check for 2.x)
>
> --
>
> Wulfraed Dennis Lee Bieber AF6VN
>
> wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/

Thats exactly my thoughts.
Can you please tell me HOW TO GET RID OF ALL PYTHON SETUPS except 2.6 that is needed for system core and then just install 3.3.2?

also why cant i install 3.3.2 using yum. if i could instead of building from source then i wouldn't have this installed mess but i could simply
yum remove python*

Chris Angelico

unread,
Jun 1, 2013, 2:18:26 AM6/1/13
to pytho...@python.org
On Sat, Jun 1, 2013 at 3:35 PM, Νικόλαος Κούρας <nikos...@gmail.com> wrote:
> Can you please tell me HOW TO GET RID OF ALL PYTHON SETUPS except 2.6 that is needed for system core and then just install 3.3.2?

Nuke the hard drive from orbit. It's the only way to be sure.

> also why cant i install 3.3.2 using yum. if i could instead of building from source then i wouldn't have this installed mess but i could simply
> yum remove python*

That would require that the repo have a 3.3.2 build in it. I don't
know the Red Hat / CentOS policies there, but I know Debian stable
wouldn't have anything so new - it takes time to test things.

ChrisA

Νικόλαος Κούρας

unread,
Jun 1, 2013, 3:51:40 AM6/1/13
to
Τη Σάββατο, 1 Ιουνίου 2013 9:18:26 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:

> That would require that the repo have a 3.3.2 build in it. I don't
> know the Red Hat / CentOS policies there, but I know Debian stable
> wouldn't have anything so new - it takes time to test things.

Is there a way to change to some repo that contain the latest python 3.3.2 to yo yum it?

Do you advise me to have the peple that iam paiding the VPS to switch me from CentOS 6.4 to ubuntu or even better debian?

Chris Angelico

unread,
Jun 1, 2013, 4:00:03 AM6/1/13
to pytho...@python.org
I advise you to follow the recommendations of the Matrix Oracle and
make up <rest of quote elided>.

ChrisA

Cameron Simpson

unread,
Jun 1, 2013, 4:21:14 AM6/1/13
to pytho...@python.org
On 01Jun2013 00:51, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= <nikos...@gmail.com> wrote:
| Τη Σάββατο, 1 Ιουνίου 2013 9:18:26 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:
| > That would require that the repo have a 3.3.2 build in it. I don't
| > know the Red Hat / CentOS policies there, but I know Debian stable
| > wouldn't have anything so new - it takes time to test things.
|
| Is there a way to change to some repo that contain the latest python 3.3.2 to yo yum it?

I asked Google:

extra yum repositories for centos

and it pointed me at:

http://wiki.centos.org/AdditionalResources/Repositories

Probably one of these has Python 3. Or build it from source; it's not hard.
--
Cameron Simpson <c...@zip.com.au>

Luge strategy? Lie flat and try not to die.
- Carman Boyle, Olympic Luge Gold Medalist

Νικόλαος Κούρας

unread,
Jun 1, 2013, 4:30:46 AM6/1/13
to
Τη Σάββατο, 1 Ιουνίου 2013 11:21:14 π.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε:
> On 01Jun2013 00:51, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= <nikos...@gmail.com> wrote:
>
> | Τη Σάββατο, 1 Ιουνίου 2013 9:18:26 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:
>
> | > That would require that the repo have a 3.3.2 build in it. I don't
>
> | > know the Red Hat / CentOS policies there, but I know Debian stable
>
> | > wouldn't have anything so new - it takes time to test things.
>
> |
>
> | Is there a way to change to some repo that contain the latest python 3.3.2 to yo yum it?
>
>
>
> I asked Google:
>
>
>
> extra yum repositories for centos
>
>
>
> and it pointed me at:
>
>
>
> http://wiki.centos.org/AdditionalResources/Repositories
>
>
>
> Probably one of these has Python 3. Or build it from source; it's not hard.

Should i chnage form CentoOS 6.4 to ubuntu by your opinion?

Cameron Simpson

unread,
Jun 2, 2013, 12:36:06 AM6/2/13
to pytho...@python.org
No. Just sort it out on CentOS. Try the extra repos. Get Python 3
from one (I'm not sure why you think your current Python 3 install
is a problem anyway, though).

You're already slightly familiar with CentOS. Switching distros
will just cause more pain. Fix your actual problems first.

This is not a recommendation one way or another re CentOS versus
Ubunutu; it is a recommendation not to change without a better reason.
--
Cameron Simpson <c...@zip.com.au>

It takes seven or eight people to send a FAX. - Anonymous IRS guy

Chris Angelico

unread,
Jun 2, 2013, 12:41:45 AM6/2/13
to pytho...@python.org
On Sun, Jun 2, 2013 at 2:36 PM, Cameron Simpson <c...@zip.com.au> wrote:
> This is not a recommendation one way or another re CentOS versus
> Ubunutu; it is a recommendation not to change without a better reason.

Agreed. I happen to like Debian-family Linuxes, having spent most of
my Linux time on either Ubuntu or Debian (and am now happy with Debian
Wheezy on most of my computers), but there's really no point jumping
ship randomly. I'm saying this for the archive only, though. Nikos
just needs to learn the skill of figuring out where his problems
really are.

ChrisA

Michael Torrie

unread,
Jun 2, 2013, 1:33:36 PM6/2/13
to pytho...@python.org
On 06/01/2013 01:51 AM, Νικόλαος Κούρας wrote:
> Τη Σάββατο, 1 Ιουνίου 2013 9:18:26 π.μ. UTC+3, ο χρήστης Chris
> Angelico έγραψε:
>
>> That would require that the repo have a 3.3.2 build in it. I don't
>> know the Red Hat / CentOS policies there, but I know Debian stable
>> wouldn't have anything so new - it takes time to test things.
>
> Is there a way to change to some repo that contain the latest python
> 3.3.2 to yo yum it?

Let me brutally blunt here, nick: have you googled for the answer or
are you just expecting us to do all your research for you?

I googled for this out of curiousity and found at least one third-party
repo that did have Python 3.3.x in it for CentOS/RHEL 6.4. I'll give
you a free hint about finding it: sometimes you have to add RHEL to the
search term as well as CentOS, since CentOS is a free clone of RHEL.

>From now on, Νικόλαος, before asking a question like this on this list,
please state what google search terms you used, what you found, and why
the google searches did not turn up the information you seek.

alex23

unread,
Jun 2, 2013, 10:16:31 PM6/2/13
to
On Jun 1, 1:20 am, Νικόλαος Κούρας <nikos.gr...@gmail.com> wrote:
> Why so many pythons in my system.

Because _you_ installed them. And we _know_ this because you've posted
multiple threads relating to your problems with _your_ installations
of Python 3. Even more entertainingly:

> root@nikos [~]# which python3
> /root/.local/lib/python2.7/bin/python3

You seem to have installed python3 inside of a local copy of
python2.7. Awesomely professional webhosting service you're providing
here.

> 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()

Did you _really_ need to post this? Was it to have us confirm they
_are_ the same versions?

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

STOP EXPERIMENTING ON YOUR PRODUCTION SERVER. You should have a test
server that is a mirror of your production on which you can _safely_
flail around ignorantly without _costing your customers_ in lost time
or data. They're sure as hell should _not_ be paying you to learn
Python badly.

Chris Angelico

unread,
Jun 2, 2013, 11:18:43 PM6/2/13
to pytho...@python.org
On Mon, Jun 3, 2013 at 12:30 PM, alex23 <wuw...@gmail.com> wrote:
> On Jun 1, 10:24 am, Chris Angelico <ros...@gmail.com> wrote:
>> Hmm. What other MUD commands have obvious Unix equivalents?
>>
>> say --> echo
>> emote --> python -c
>> attack --> sudo rm -f
>
> who --> who
> tell --> write
> alias --> ln
> look --> cat
> go --> cd
> teleport --> pushd/popd ?

I don't use an explicit 'go' though, I usually just type 'n' to go
north, or 'booth1' to go booth1. Unfortunately that doesn't translate
well into a simple alias :)

Hey, if you like MUDs, why not come play D&D with us? minstrelhall.com
port 221 - always looking for new players!

ChrisA

Joshua Landau

unread,
Jun 3, 2013, 7:26:38 AM6/3/13
to Chris Angelico, python-list
On 3 June 2013 04:18, Chris Angelico <ros...@gmail.com> wrote:
> On Mon, Jun 3, 2013 at 12:30 PM, alex23 <wuw...@gmail.com> wrote:
>> On Jun 1, 10:24 am, Chris Angelico <ros...@gmail.com> wrote:
>>> Hmm. What other MUD commands have obvious Unix equivalents?
>>>
>>> say --> echo
>>> emote --> python -c
>>> attack --> sudo rm -f
>>
>> who --> who
>> tell --> write
>> alias --> ln
>> look --> cat
>> go --> cd
>> teleport --> pushd/popd ?
>
> I don't use an explicit 'go' though, I usually just type 'n' to go
> north, or 'booth1' to go booth1. Unfortunately that doesn't translate
> well into a simple alias :)

What shell do you use? Zsh supports this (implicit cd). I don't have
it active because it's not that useful - you get better completion
with explicit cd - but it exists.

Walter Hurry

unread,
Jun 3, 2013, 10:35:46 AM6/3/13
to
On Sun, 02 Jun 2013 14:41:45 +1000, Chris Angelico wrote:

> Nikos just
> needs to learn the skill of figuring out where his problems really are.
>
Between the keyboard and the chair, obv.

nagia....@gmail.com

unread,
Jun 3, 2013, 11:00:10 AM6/3/13
to
Τη Δευτέρα, 3 Ιουνίου 2013 6:18:43 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:

> Hey, if you like MUDs, why not come play D&D with us? minstrelhall.com
> port 221 - always looking for new players!

I am a fanatic hess player.
You can find me on FICS under the handle 'NikosGr'.
I challenge you! :-)

nagia....@gmail.com

unread,
Jun 3, 2013, 11:01:04 AM6/3/13
to
Maybe you should tell us how you find out yours.

Ian Kelly

unread,
Jun 3, 2013, 2:29:29 PM6/3/13
to Python

On May 31, 2013 6:27 PM, "Chris Angelico" <ros...@gmail.com> wrote:
> Yeah. I know that particular one because I have l aliased to ls -CF
> (aka --columns --classify), mainly because it came that way as a
> commented-out entry in my first Debian. Have since become quite
> accustomed to it; to me, 'l' means 'look' (I do love my MUDs), so I'm
> considering aliasing 'gl' to 'pwd' so that I can 'glance' too :)
>

> Hmm. What other MUD commands have obvious Unix equivalents?
>
> say --> echo
> emote --> python -c
> attack --> sudo rm -f

Have you ever tried Adventure Shell?

Michael Torrie

unread,
Jun 3, 2013, 2:37:23 PM6/3/13
to pytho...@python.org
On 06/03/2013 09:01 AM, nagia....@gmail.com wrote:
> Maybe you should tell us how you find out yours.

Chris and others have told you how they go about solving their problems.
Quite a few times. In fact repeating themselves even. I think we've
run out of different ways to saying it now.

It's a process of research, tracing execution, understanding code flow,
beta-testing code on a local machine (not on a production server!). Why
do you expect it to be any different?

Νικόλαος Κούρας

unread,
Jun 4, 2013, 2:33:49 AM6/4/13
to
Could you please install them because i need to work?

a) pip (so that i can successfully run 'pip install pymysql'
b) development tools

I wiped the while perl away (leaving intact 2.6) but i wiped out pip at the proces to.

Fábio Santos

unread,
Jun 4, 2013, 3:08:44 AM6/4/13
to Νικόλαος Κούρας, pytho...@python.org

> --
> http://mail.python.org/mailman/listinfo/python-list

Pip should be in your system's package manager. In Ubuntu it's available through sudo apt-get install python-pip.

What are those development tools you speak of?

Why would you uninstall perl?

Νικόλαος Κούρας

unread,
Jun 4, 2013, 3:11:39 AM6/4/13
to
Τη Τρίτη, 4 Ιουνίου 2013 10:08:44 π.μ. UTC+3, ο χρήστης Fábio Santos έγραψε:

> Pip should be in your system's package manager. In Ubuntu it's available through sudo apt-get install python-pip.

> What are those development tools you speak of?
> Why would you uninstall perl?

Sorry i meant Python, not Perl

I'm using CentOS.

So, i guess its something like 'yum install python-pip'
i cannot find it, have searched it in variosu ways.

alex23

unread,
Jun 4, 2013, 3:21:11 AM6/4/13
to
On Jun 4, 5:11 pm, Νικόλαος Κούρας <nikos.gr...@gmail.com> wrote:
> So, i guess its something like 'yum install python-pip'
> i cannot find it, have searched it in variosu ways.

If you're going to claim to have tried something, can you at least
tell us what you tried? Because quelle surprise! the most obvious
combination of search terms works:

[plone@localhost]$ yum search python-pip
...
python-pip.noarch : Pip installs packages. Python3 packages. An
easy_install replacement

If you're not seeing this then you've broken your package manager,
possibly by overwriting the existing repositories with the new ones
you've added. It's next to impossible to tell, however, because we
don't have an access to what you mean by "variosu ways".

Expert tip: there's this AMAZING technology called "Google", which if
you visit their site, enter the cryptic incantation "python pip
centos", and click on *the very first link*, it actually provides you
with explicit directions! What brave new world that etc!

Νικόλαος Κούρας

unread,
Jun 4, 2013, 3:39:02 AM6/4/13
to
Τη Τρίτη, 4 Ιουνίου 2013 10:21:11 π.μ. UTC+3, ο χρήστης alex23 έγραψε:
> On Jun 4, 5:11 pm, Νικόλαος Κούρας <nikos.gr...@gmail.com> wrote:
>
> > So, i guess its something like 'yum install python-pip'
> > i cannot find it, have searched it in variosu ways.
>
>
>
> If you're going to claim to have tried something, can you at least
> tell us what you tried? Because quelle surprise! the most obvious
> combination of search terms works:

Well, since you dough me here it is:

ni...@superhost.gr [~]# yum search python-pip
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirror.netcologne.de
* extras: mirror.optimate-server.de
* updates: mirror.softaculous.com
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-base 3/3
vz-updates | 951 B 00:00
No Matches found
ni...@superhost.gr [~]#

Νικόλαος Κούρας

unread,
Jun 4, 2013, 4:20:20 AM6/4/13
to
Still can't find it:

ni...@superhost.gr [~/www/data/apps]# yum search *pip*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No Matches found
ni...@superhost.gr [~/www/data/apps]#

Νικόλαος Κούρας

unread,
Jun 4, 2013, 5:49:48 AM6/4/13
to
Okey found it.

since couldnt install pip i did:

easy_install pymysql

Fábio Santos

unread,
Jun 4, 2013, 7:26:23 AM6/4/13
to Νικόλαος Κούρας, pytho...@python.org

It is not the recommended way to install pip, but you can ironically easy_install pip

Fábio Santos

unread,
Jun 4, 2013, 7:29:00 AM6/4/13
to Νικόλαος Κούρας, pytho...@python.org


On 4 Jun 2013 12:26, "Fábio Santos" <fabiosa...@gmail.com> wrote:
>
>
> On 4 Jun 2013 10:54, "Νικόλαος Κούρας" <nikos...@gmail.com> wrote:
> >

> It is not the recommended way to install pip, but you can ironically easy_install pip

Sorry for double posting but my favorite web host has a lot of pythons. It is very handy.

Michael Torrie

unread,
Jun 4, 2013, 10:32:55 AM6/4/13
to pytho...@python.org
On 06/04/2013 01:39 AM, οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ wrote:
> Well, since you dough me here it is:

Did you even bother to google it? If you did, you'd find that
python-pip is available in a semi-official repository called EPEL. Just
about every RHEL and CentOS install should have EPEL installed. Now
it's pip for Python 2.6 of course. If you need python 3.3, there is a
repo out there (third-party of course) that google can help you find.
0 new messages