Try this command
python -c "import os, idlelib; execfile(os.path.join(os.path.split(idlelib.__file__)[0], 'idle.py'))"&
It should be a multiplatform command. If you can't import idlelib, it means that you must install the tkinter package.
Note that this simpler command also works
python -c "from idlelib import idle"&
Gribouillis
Posting Maven
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691
About python 3, you should be able to install it with yum install python3 .
Gribouillis
Posting Maven
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691
You will probably find python3 under /usr/bin/python3.
The port binding error is standard in idle: idle uses 2 processes, the first one to run idle GUI, and the second one to run your code. The 2 processes communicate through a port. It means that you cannot run 2 idle's at the same time (in fact there are alternatives to this: idle.py accepts command line options to run without a subprocess or to use another port).
If you are new to linux, most commands are installed in /usr/bin or /usr/local/bin, and administrator commands in /bin , /sbin or /usr/sbin. The first tools to get info about a command are
$ mycommand -h (or --help)
$ man mycommand
also you can use 'man mycommand' in google's search field :)
Gribouillis
Posting Maven
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691