Why are you trying to install python3 from source ? I'm running Mandriva 2010 on a 64 bits processor and I installed the packages python3 and tkinter3 with the software manager. This gave me a working python 3 with tkinter.
Python 3.1.1 (r311:74480, Jan 5 2010, 18:03:14)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
>>> tkinter.Tk()
<tkinter.Tk object at 0x250cad0>
I also ran your code and it works very well (I had to replace Tkinter by tkinter and command=quit by command=root.quit, otherwise it prints None for some reason).
Gribouillis
Posting Maven
3,101 posts since Jul 2008
Reputation Points: 1,130
Solved Threads: 761
Skill Endorsements: 11
Note that my python3 package was automatically updated January the 5th. I don't quite understand your argument. Unless you are using bleeding edge features of python, you don't usually need the latest revision of python to run your programs.
Gribouillis
Posting Maven
3,101 posts since Jul 2008
Reputation Points: 1,130
Solved Threads: 761
Skill Endorsements: 11
That's weird, I updated everything in sight and my python is still 2.64. I do see, however, a python3 package, which is not installed.
Even if you install the python3 package, your system's python remains python2.6. To use python 3, you must invoke /usr/bin/python3 instead of /usr/bin/python.
Gribouillis
Posting Maven
3,101 posts since Jul 2008
Reputation Points: 1,130
Solved Threads: 761
Skill Endorsements: 11
Well, that's a possibility then. I'll try it in my virtual mandriva.
However, I still wanna find out how to do it from source in Mandriva AND what the problem here is. As I said before, it is not a problem in other distributions, but in Mandriva this is always the case. Last time (Mandriva 2009.1) I had to copy some folders from another system into the /usr/lib directory (if i remember correctly) to get it to work, but I don't have those files anymore.
Any ideas?
Maybe you can tell me what's installed in your system?
I tried to install python 3 and tkinter 3 from source when Mandriva 2010 was just a few days old and the tkinter3 package was not yet available -- and it failed --, so I'm afraid I can't help you much in this. If you manage doing it (but I still think it is a waste of time), you should post your solution in the mandriva forum, because other users may be interested :)
Gribouillis
Posting Maven
3,101 posts since Jul 2008
Reputation Points: 1,130
Solved Threads: 761
Skill Endorsements: 11
Question Answered as of 3 Years Ago by
Gribouillis