The situation is this:
I use opensuse, which bundled with a python 2.4.X version, I installed
it.
Then I think python 2.6.4 is better, so I installed python 2.6.4
and all the later package I installed, were with python 2.6.4.
In my project, I need a module named tkinter (python-tk)
Now there is an python-tk missing, but the software management
software showed that it is already installed.
So I think it is asscociated with python 2.4.X.
And I cannot find a place for downloading this tkinter....so I cannot
install it manually too.

I guess I need to remove the old version of python? Right?
Do you guys have any suggestion , just to make the tkinter works for python 2.6.4?

For more information, here is a list of conflicts when I tried to uninstalled old version of python, which was installed throught YAST:
---------------------------------------------------------------------------------------------
#### YaST2 conflicts list - generated 2010-01-24 14:26:15 ####

createrepo has missing dependencies
There are no alternative providers of python < 2.6 installed for createrepo-0.4.10-14.noarch
=== createrepo-0.4.10-14.noarch ===
python-2.5.1-39.8.i586 provides python == 2.5.1-39.8, but is scheduled to be uninstalled.
python-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides python == 2.5.1-39.2, but it is uninstallable. Try installing it on its own for more details.
createrepo-0.4.10-14.noarch depends on python
createrepo-0.4.10-14.noarch is lacking the requirement /usr/bin/python
There are no alternative providers of yum-metadata-parser installed for createrepo-0.4.10-14.noarch
(null)
Conflict Resolution:
( ) keep python
(x) delete createrepo
( ) Ignore this requirement just here
( ) Generally ignore this requirement
hplip has missing dependencies
There are no alternative providers of python-xml installed for hplip-2.7.7-37.4.i586
=== hplip-2.7.7-37.4.i586 ===
python-xml-2.5.1-39.8.i586 provides python-xml == 2.5.1-39.8, but is scheduled to be uninstalled.
python-xml-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides python-xml == 2.5.1-39.2, but it is uninstallable. Try installing it on its own for more details.
hplip-2.7.7-37.4.i586 depends on python-xml
hplip-2.7.7-37.4.i586 is lacking the requirement python-xml
(null)
Conflict Resolution:
( ) keep python-xml
( ) delete hplip
( ) Ignore this requirement just here
( ) Generally ignore this requirement
kdebase3-devel has missing dependencies
There are no alternative providers of kdelibs3-devel installed for kdebase3-devel-3.5.7-87.5.i586
=== kdebase3-devel-3.5.7-87.5.i586 ===
kdelibs3-devel-3.5.7-72.11.i586 provides kdelibs3-devel == 3.5.7-72.11, but is scheduled to be uninstalled.
kdelibs3-devel-3.5.7-72.2.i586[openSUSE-10.3-Updates] provides kdelibs3-devel == 3.5.7-72.2, but has another architecture.
kdebase3-devel-3.5.7-87.5.i586 depends on kdelibs3-devel
kdebase3-devel-3.5.7-87.5.i586 is lacking the requirement kdelibs3-devel
(null)
Conflict Resolution:
( ) keep kdelibs3-devel
( ) delete kdebase3-devel
( ) Ignore this requirement just here
( ) Generally ignore this requirement
kdelibs3-devel has missing dependencies
There are no alternative providers of unsermake installed for kdelibs3-devel-3.5.7-72.11.i586
=== kdelibs3-devel-3.5.7-72.11.i586 ===
unsermake-0.4_20070504-42.i586 provides unsermake == 0.4_20070504-42, but is scheduled to be uninstalled.
unsermake-0.4_20070504-42.i586[openSUSE-10.3-DVD 10.3] provides unsermake == 0.4_20070504-42, but it is uninstallable. Try installing it on its own for more details.
kdelibs3-devel-3.5.7-72.11.i586 depends on unsermake
kdelibs3-devel-3.5.7-72.11.i586 is lacking the requirement unsermake
(null)
Conflict Resolution:
( ) keep unsermake
( ) delete kdelibs3-devel
( ) Ignore this requirement just here
( ) Generally ignore this requirement
kdevelop3 has missing dependencies
There are no alternative providers of kdebase3-devel installed for kdevelop3-3.4.1-64.i586
=== kdevelop3-3.4.1-64.i586 ===
kdebase3-devel-3.5.7-87.5.i586 provides kdebase3-devel == 3.5.7-87.5, but is scheduled to be uninstalled.
kdebase3-devel-3.5.7-87.2.i586[openSUSE-10.3-Updates] provides kdebase3-devel == 3.5.7-87.2, but has another architecture.
kdevelop3-3.4.1-64.i586 depends on python-kde3
kdevelop3-3.4.1-64.i586 is lacking the requirement kdebindings3-python
(null)
Conflict Resolution:
( ) keep kdebase3-devel
( ) delete kdevelop3
( ) Ignore this requirement just here
( ) Generally ignore this requirement
koffice-illustration has missing dependencies
There are no alternative providers of libpython2.5.so.1.0 installed for koffice-illustration-1.6.3-51.5.i586
=== koffice-illustration-1.6.3-51.5.i586 ===
python-2.5.1-39.8.i586 provides libpython2.5.so.1.0, but is scheduled to be uninstalled.
python-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides libpython2.5.so.1.0, but it is uninstallable. Try installing it on its own for more details.
koffice-illustration-1.6.3-51.5.i586 depends on python
koffice-illustration-1.6.3-51.5.i586 is lacking the requirement libpython2.5.so.1.0
(null)
Conflict Resolution:
( ) keep python
( ) delete koffice-illustration
( ) Ignore this requirement just here
( ) Generally ignore this requirement
libxml2-python has missing dependencies
There are no alternative providers of python < 2.6 installed for libxml2-python-2.6.30-4.2.i586
=== libxml2-python-2.6.30-4.2.i586 ===
python-2.5.1-39.8.i586 provides python == 2.5.1-39.8, but is scheduled to be uninstalled.
python-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides python == 2.5.1-39.2, but it is uninstallable. Try installing it on its own for more details.
libxml2-python-2.6.30-4.2.i586 depends on python
libxml2-python-2.6.30-4.2.i586 is lacking the requirement python >= 2.5
(null)
Conflict Resolution:
( ) keep python
( ) delete libxml2-python
( ) Ignore this requirement just here
( ) Generally ignore this requirement
OpenOffice_org-mailmerge has missing dependencies
There are no alternative providers of OpenOffice_org-pyuno == 2.3.0.1.2 installed for OpenOffice_org-mailmerge-2.3.0.1.2-10.9.i586
=== OpenOffice_org-mailmerge-2.3.0.1.2-10.9.i586 ===
OpenOffice_org-pyuno-2.3.0.1.2-10.9.i586 provides OpenOffice_org-pyuno == 2.3.0.1.2-10.9, but is scheduled to be uninstalled.
OpenOffice_org-pyuno-2.3.0.1.2-10.3.i586[openSUSE-10.3-Updates] provides OpenOffice_org-pyuno == 2.3.0.1.2-10.3, but it is uninstallable. Try installing it on its own for more details.
OpenOffice_org-mailmerge-2.3.0.1.2-10.9.i586 depends on OpenOffice_org-pyuno
OpenOffice_org-mailmerge-2.3.0.1.2-10.9.i586 is lacking the requirement OpenOffice_org-pyuno == 2.3.0.1.2
(null)
Conflict Resolution:
( ) keep OpenOffice_org-pyuno
( ) delete OpenOffice_org-mailmerge
( ) Ignore this requirement just here
( ) Generally ignore this requirement
OpenOffice_org-pyuno has missing dependencies
There are no alternative providers of libpython2.5.so.1.0 installed for OpenOffice_org-pyuno-2.3.0.1.2-10.9.i586
=== OpenOffice_org-pyuno-2.3.0.1.2-10.9.i586 ===
python-2.5.1-39.8.i586 provides libpython2.5.so.1.0, but is scheduled to be uninstalled.
python-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides libpython2.5.so.1.0, but it is uninstallable. Try installing it on its own for more details.
OpenOffice_org-pyuno-2.3.0.1.2-10.9.i586 depends on python
OpenOffice_org-pyuno-2.3.0.1.2-10.9.i586 is lacking the requirement libpython2.5.so.1.0
(null)
Conflict Resolution:
( ) keep python
( ) delete OpenOffice_org-pyuno
( ) Ignore this requirement just here
( ) Generally ignore this requirement
pychecker has missing dependencies
There are no alternative providers of python < 2.6 installed for pychecker-0.8.17-80.i586
=== pychecker-0.8.17-80.i586 ===
python-2.5.1-39.8.i586 provides python == 2.5.1-39.8, but is scheduled to be uninstalled.
python-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides python == 2.5.1-39.2, but it is uninstallable. Try installing it on its own for more details.
pychecker-0.8.17-80.i586 depends on python
pychecker-0.8.17-80.i586 is lacking the requirement python >= 2.5
(null)
Conflict Resolution:
( ) keep python
( ) delete pychecker
( ) Ignore this requirement just here
( ) Generally ignore this requirement
python-demo has missing dependencies
There are no alternative providers of python == 2.5.1 installed for python-demo-2.5.1-39.8.i586
=== python-demo-2.5.1-39.8.i586 ===
python-2.5.1-39.8.i586 provides python == 2.5.1-39.8, but is scheduled to be uninstalled.
python-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides python == 2.5.1-39.2, but it is uninstallable. Try installing it on its own for more details.
python-demo-2.5.1-39.8.i586 depends on python
python-demo-2.5.1-39.8.i586 is lacking the requirement python == 2.5.1
(null)
Conflict Resolution:
( ) keep python
( ) delete python-demo
( ) Ignore this requirement just here
( ) Generally ignore this requirement
python-devel has missing dependencies
There are no alternative providers of python == 2.5.1 installed for python-devel-2.5.1-39.8.i586
=== python-devel-2.5.1-39.8.i586 ===
python-2.5.1-39.8.i586 provides python == 2.5.1-39.8, but is scheduled to be uninstalled.
python-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides python == 2.5.1-39.2, but it is uninstallable. Try installing it on its own for more details.
python-devel-2.5.1-39.8.i586 depends on python
python-devel-2.5.1-39.8.i586 is lacking the requirement /usr/bin/python
There are no alternative providers of python-tk installed for python-devel-2.5.1-39.8.i586
(null)
Conflict Resolution:
( ) keep python
( ) delete python-devel
( ) Ignore this requirement just here
( ) Generally ignore this requirement
python-kde3 has missing dependencies
There are no alternative providers of python-qt >= 3.17.3 installed for python-kde3-3.16.0-28.i586
=== python-kde3-3.16.0-28.i586 ===
python-qt-3.17.3-18.i586 provides python-qt == 3.17.3-18, but is scheduled to be uninstalled.
python-qt-3.17.3-18.i586[openSUSE-10.3-DVD 10.3] provides python-qt == 3.17.3-18, but has another architecture.
python-kde3-3.16.0-28.i586 depends on python-qt
python-kde3-3.16.0-28.i586 is lacking the requirement python-qt >= 3.17.3
(null)
Conflict Resolution:
( ) keep python-qt
( ) delete python-kde3
( ) Ignore this requirement just here
( ) Generally ignore this requirement
python-qt has missing dependencies
There are no alternative providers of python-sip >= 4.7 installed for python-qt-3.17.3-18.i586
=== python-qt-3.17.3-18.i586 ===
python-sip-4.7-20.i586 provides python-sip == 4.7-20, but is scheduled to be uninstalled.
python-sip-4.7-20.i586[openSUSE-10.3-DVD 10.3] provides python-sip == 4.7-20, but it is uninstallable. Try installing it on its own for more details.
python-qt-3.17.3-18.i586 depends on python-sip
python-qt-3.17.3-18.i586 is lacking the requirement python-sip >= 4.7
(null)
Conflict Resolution:
( ) keep python-sip
( ) delete python-qt
( ) Ignore this requirement just here
( ) Generally ignore this requirement
python-sip has missing dependencies
There are no alternative providers of python < 2.6 installed for python-sip-4.7-20.i586
=== python-sip-4.7-20.i586 ===
python-2.5.1-39.8.i586 provides python == 2.5.1-39.8, but is scheduled to be uninstalled.
python-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides python == 2.5.1-39.2, but it is uninstallable. Try installing it on its own for more details.
python-sip-4.7-20.i586 depends on python
python-sip-4.7-20.i586 is lacking the requirement python >= 2.5
(null)
Conflict Resolution:
( ) keep python
( ) delete python-sip
( ) Ignore this requirement just here
( ) Generally ignore this requirement
python-tk has missing dependencies
There are no alternative providers of python == 2.5.1 installed for python-tk-2.5.1-39.8.i586
=== python-tk-2.5.1-39.8.i586 ===
python-2.5.1-39.8.i586 provides python == 2.5.1-39.8, but is scheduled to be uninstalled.
python-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides python == 2.5.1-39.2, but it is uninstallable. Try installing it on its own for more details.
python-tk-2.5.1-39.8.i586 depends on python
python-tk-2.5.1-39.8.i586 is lacking the requirement libpython2.5.so.1.0
(null)
Conflict Resolution:
( ) keep python
( ) delete python-tk
( ) Ignore this requirement just here
( ) Generally ignore this requirement
python-xml has missing dependencies
There are no alternative providers of python == 2.5.1 installed for python-xml-2.5.1-39.8.i586
=== python-xml-2.5.1-39.8.i586 ===
python-2.5.1-39.8.i586 provides python == 2.5.1-39.8, but is scheduled to be uninstalled.
python-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides python == 2.5.1-39.2, but it is uninstallable. Try installing it on its own for more details.
python-xml-2.5.1-39.8.i586 depends on python
python-xml-2.5.1-39.8.i586 is lacking the requirement libpython2.5.so.1.0
(null)
Conflict Resolution:
( ) keep python
( ) delete python-xml
( ) Ignore this requirement just here
( ) Generally ignore this requirement
rpm-python has missing dependencies
There are no alternative providers of python < 2.6 installed for rpm-python-4.4.2-164.i586
=== rpm-python-4.4.2-164.i586 ===
python-2.5.1-39.8.i586 provides python == 2.5.1-39.8, but is scheduled to be uninstalled.
python-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides python == 2.5.1-39.2, but it is uninstallable. Try installing it on its own for more details.
rpm-python-4.4.2-164.i586 depends on python
rpm-python-4.4.2-164.i586 is lacking the requirement python >= 2.5
(null)
Conflict Resolution:
( ) keep python
( ) delete rpm-python
( ) Ignore this requirement just here
( ) Generally ignore this requirement
unsermake has missing dependencies
There are no alternative providers of python < 2.6 installed for unsermake-0.4_20070504-42.i586
=== unsermake-0.4_20070504-42.i586 ===
python-2.5.1-39.8.i586 provides python == 2.5.1-39.8, but is scheduled to be uninstalled.
python-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides python == 2.5.1-39.2, but it is uninstallable. Try installing it on its own for more details.
unsermake-0.4_20070504-42.i586 depends on python
unsermake-0.4_20070504-42.i586 is lacking the requirement python >= 2.5
(null)
Conflict Resolution:
( ) keep python
( ) delete unsermake
( ) Ignore this requirement just here
( ) Generally ignore this requirement
yum-metadata-parser has missing dependencies
There are no alternative providers of python < 2.6 installed for yum-metadata-parser-1.1.2-9.i586
=== yum-metadata-parser-1.1.2-9.i586 ===
python-2.5.1-39.8.i586 provides python == 2.5.1-39.8, but is scheduled to be uninstalled.
python-2.5.1-39.2.i586[openSUSE-10.3-Updates] provides python == 2.5.1-39.2, but it is uninstallable. Try installing it on its own for more details.
yum-metadata-parser-1.1.2-9.i586 depends on python
yum-metadata-parser-1.1.2-9.i586 is lacking the requirement libpython2.5.so.1.0
(null)
Conflict Resolution:
( ) keep python
( ) delete yum-metadata-parser
( ) Ignore this requirement just here
( ) Generally ignore this requirement

#### YaST2 conflicts list END ###

You must NEVER remove the version of python that comes with a linux distribution, because the system uses python scripts which were written for this version of python.

In the README file of the python 2.6.2 sources, I found this

Tkinter
-------

The setup.py script automatically configures this when it detects a
usable Tcl/Tk installation.  This requires Tcl/Tk version 8.0 or
higher.

For more Tkinter information, see the Tkinter Resource page:
http://www.python.org/topics/tkinter/

There are demos in the Demo/tkinter directory.

Note that there's a Python module called "Tkinter" (capital T) which
lives in Lib/lib-tk/Tkinter.py, and a C module called "_tkinter"
(lower case t and leading underscore) which lives in
Modules/_tkinter.c.  Demos and normal Tk applications import only the
Python Tkinter module -- only the latter imports the C _tkinter
module.  In order to find the C _tkinter module, it must be compiled
and linked into the Python interpreter -- the setup.py script does
this.  In order to find the Python Tkinter module, sys.path must be
set correctly -- normal installation takes care of this.

and this

Installing multiple versions
----------------------------

On Unix and Mac systems if you intend to install multiple versions of Python
using the same installation prefix (--prefix argument to the configure
script) you must take care that your primary python executable is not
overwritten by the installation of a different versio.  All files and
directories installed using "make altinstall" contain the major and minor
version and can thus live side-by-side.  "make install" also creates
${prefix}/bin/python which refers to ${prefix}/bin/pythonX.Y.  If you intend
to install multiple versions using the same prefix you must decide which
version (if any) is your "primary" version.  Install that version using
"make install".  Install all other versions using "make altinstall".

For example, if you want to install Python 2.5, 2.6 and 3.0 with 2.6 being
the primary version, you would execute "make install" in your 2.6 build
directory and "make altinstall" in the others.

Is your version of Tcl/Tk >= 8.0 ? Your software manager should tell you this. In this case, python 2.6 should build with tkinter. Make sure you install the development packages of tcl and tk before you build python2.6 (something like tcl-devel and tk-devel).

Again, I recommend that you install a more recent version of linux on your machine. Why do you keep an old system ?

The python isn't came with linux, I just "tick" the box of python when I install linux, because I knew I need python to do with my project.

concerning the tk version, I got a screenshot for you:
http://img33.imageshack.us/img33/5295/1112vo.jpg

As for the linux, I just do want to upgrade because I afraid my data would go lost, and I think that hurts me hell lots of time

Edited 6 Years Ago by gunbuster363: n/a

Your picture doesn't show the version of tcl/tk, but the version of tkinter. To see the version of tcl/tk, you must look the packages tcl and tk. On my system (mandriva 2010), the version is 8.6.

Then you should install the packages tcl-devel and tk-devel, download python 2.6 source code and build from source.

About upgrading your system: when you install a linux system, you should make a separate partition for the mount point /home , because this allows you to reinstall a new system without changing the content of /home. This way, you keep your data easily. So if your /home is on a separate partition, you should be able to reinstall your system.
Another thing you can do: if all your data in your home folder, say /home/gunbuster, then you can create an archive file of your whole home folder. For this, as administrator, you issue the following commands in a console

cd /home
tar czf gunbuster.tgz gunbuster

Then look at the size of the file gunbuster.tgz. If it's not too big, you should be able to save it on a usb key (it may take some times) or on a separate hard drive. You can even make more than one copy. Then you install a new linux system (with /home in its own partition). In your new system, you put gunbuster.tgz in /home/gunbuster, and you do

cd
tar xzf gunbuster.tgz

Then the folder /home/gunbuster/gunbuster should contain all your previous data. You can then reorganize your old files by moving some directories from this folder to your new home folder.

damn it
I downloaded a thing said it is tkinter 2.4.2 and installed it
through ./configure make make install
It turns out that is a python 2.4.2, now my python become 2.4.2... OMG
help....

oh yeah
I reinstall python 2.6.4 using checkinstall

back to the first problem

I checked my machine
it got tk and tcl installed,
then I installed tk-devel and tcl-devel
then install python again
it is not working

I checked my machine
it got tk and tcl installed,
then I installed tk-devel and tcl-devel
then install python again
it is not working

I didn't say you should install python 2.6, I said you should install it from source following the instructions of the README file concerning tkinter and installation of multiple versions of python.

Edited 6 Years Ago by Gribouillis: n/a

Problem solved......just as suggested by you.
just make install.....
I think the reason why I fail before, is that I use "checkinstall" to create a rpm, then install python
later I just go make install, and it is fine.

Thank you very much!!!!

This question has already been answered. Start a new discussion instead.