[Tutor] python3.0 and tkinter on ubuntu 8.10
Vern Ceder
vceder at canterburyschool.org
Tue Jan 13 22:02:48 CET 2009
Hi,
I have Python 3.0/Tkinter/IDLE working fine on Ubuntu 8.10, but it takes
a certain amount of fiddling.
1. Make sure the stock Ubuntu Python 3.0 package is not installed
2. download the Python 3.0 source from python.org
3. install the following packages: build-essential libsqlite3-dev
libreadline5-dev libncurses5-dev zlib1g-dev libbz2-dev libssl-dev
libgdbm-dev tk-dev
4. unpack the Python source and switch to that folder
5. build Python using the standard ./configure, make, make install
sequence - if you want more detail/help on that process, just ask...
I'd be happy to explain this process in more detail if anyone wants...
Cheers,
Vern
> Hi Tutors,I have downloaded Python3.0 and started playing with it. I like it
> because of the utf-8 default encoding, but I'm having trouble importing
> tkinter. I get the following:
>>>> >>> import turtle
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/local/lib/python3.0/turtle.py", line 107, in <module>
> import tkinter as TK
> File "/usr/local/lib/python3.0/tkinter/__init__.py", line 39, in <module>
> import _tkinter # If this fails your Python may not be configured for Tk
> ImportError: No module named _tkinter
>>>> >>> import tkinter
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/local/lib/python3.0/tkinter/__init__.py", line 39, in <module>
> import _tkinter # If this fails your Python may not be configured for Tk
> ImportError: No module named _tkinter
>>>> >>>
>
> Any idea how this can be solved on Ubuntu 8.10. I don't have this problem
> with the default Python installation (2.5.2)
> Thank you
--
This time for sure!
-Bullwinkle J. Moose
-----------------------------
Vern Ceder, Director of Technology
Canterbury School, 3210 Smith Road, Ft Wayne, IN 46804
vceder at canterburyschool.org; 260-436-0746; FAX: 260-436-5137
More information about the Tutor
mailing list