Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-24-2003, 07:55 AM   #1
LQ Newbie
Registered: Jul 2003
Posts: 17

Rep: Reputation: 0
Talking python 2.3 and idle

Being a relative newcomer to Linux I have successfully installed the latest version of python (2.3) - on my Suse 8.2 version of Linux - which came installed with Python 2.2.

However I find that tkinter is not installed (when I type idle I get no module named -tkinter).

How do I install tkinter and I suspect I also need tk?

The instructions I have talk about setting PATH but I have no idea what PATH is or how to set it or how to see what is currently in PATH (I guess it is like the PATH in DOS/Windows).

I should have checked for the existence of tkinter before installing the new version of python, but I just didn't think.

One more question, when I type python at a command prompt I get the new version of python I just installed - why is that? What has the installation changed to route python to the version I just installed - I am just curious.

Presumably any Suse applications that rely upon version 2.2 will still be able to find it?
Old 10-25-2003, 07:01 PM   #2
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
Yes, the $PATH environment variable in Linux is similar to what you may be used to in MSWin. Your system will execute the first appropriately named executable that it encounters while traversing the defined path. Your new installation of python has either replaced the previous version, or it is being encountered first when you try to invoke it.

You can inspect your path variable by invoking: echo $PATH

You can manipulate your path (if you are feeling bold) by editting your .bashrc or .profile file in your home directory.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to configure python for idle (Tk) master Linux - Software 5 01-14-2011 12:34 PM
How do I launch Python-IDLE? Gurduloo MEPIS 4 06-09-2005 01:27 PM
Python IDLE apocolpse Programming 2 11-09-2004 09:37 PM
Python Idle apocolpse Programming 2 10-18-2004 05:16 AM
Python IDLE Interface Odd_Bloke Linux - Software 4 08-26-2003 02:58 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration