Re: how to use tkinter in python3.2?

Discussion in 'Python' started by Terry Reedy, Jul 1, 2012.

  1. Terry Reedy

    Terry Reedy Guest

    On 7/1/2012 12:25 AM, contro opinion wrote:

    I am on Windows, but...

    > tiger@ocean:~$ python3.2
    > Python 3.2.3 (default, Jul 1 2012, 11:07:14)
    > [GCC 4.4.5] on linux2
    > Type "help", "copyright", "credits" or "license" for more information.
    > >>> import tkinter

    > Traceback (most recent call last):
    > File "<stdin>", line 1, in <module>
    > File "/usr/local/lib/python3.2/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


    _tkinter is the compiled C module that directly interfaces to tk. It is
    imported by the python module tkinter. For whatever reason, it was not
    compiled for your installation. Who did the compilation?

    > i have installed tk ,how to use tkinker in python3.2?
    >
    > in my computer ,i can use tkinter in python3
    > tiger@ocean:~$ python3
    > Python 3.1.3 (r313:86834, Nov 28 2010, 11:28:10)
    > [GCC 4.4.5] on linux2
    > Type "help", "copyright", "credits" or "license" for more information.
    > >>> import tkinter


    and who compiled that (correctly)?

    --
    Terry Jan Reedy
    Terry Reedy, Jul 1, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeff Epler
    Replies:
    0
    Views:
    491
    Jeff Epler
    Aug 20, 2004
  2. harrismh777

    Python3 Tkinter difficulty

    harrismh777, Mar 29, 2011, in forum: Python
    Replies:
    4
    Views:
    542
    harrismh777
    Mar 30, 2011
  3. Andrew Berg
    Replies:
    0
    Views:
    321
    Andrew Berg
    Jun 16, 2012
  4. Serhiy Storchaka

    Re: how to use tkinter in python3.2?

    Serhiy Storchaka, Jul 1, 2012, in forum: Python
    Replies:
    0
    Views:
    183
    Serhiy Storchaka
    Jul 1, 2012
  5. lcrocker
    Replies:
    43
    Views:
    329
Loading...

Share This Page