1) 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3]
2)>>> import sys >>> print sys.path ['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/var/lib/python-support/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/var/lib/python-support/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode', '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode', '/usr/local/lib/python2.6/dist-packages'] >>> On Wed, Jun 9, 2010 at 3:37 PM, Dave Angel <da...@ieee.org> wrote: > Note, I said "REPLY-ALL'. By default a simple reply goes to the > individual, and not to the list. Make sure python-list@python.org is in > your "TO:" list. I'm sending this back to the list, with my remarks at the > end, since top-posting is inconsistent and confusing. > > madhuri vio wrote: > >> yea i have deleted all the files related to dat module and >> now when i try to execute it ,,it says >> >> python madhu.py >> Traceback (most recent call last): >> File "madhu.py", line 4, in <module> >> import tkinter >> ImportError: No module named tkinter >> >> and it has already been installed... >> so i was wondering if there was any other way of importing tkinter module >> and where am i wrong..i am stuck;( >> >> On Wed, Jun 9, 2010 at 3:03 PM, Dave Angel <da...@ieee.org> wrote: >> >> <snip> >> > > Two questions: > > 1) what version of Python ? You're using the version 3 capitalization. > Might you have version 2.x of Python installed? > > >>>>Tkinter has been renamed to tkinter in Python 3.0 > > import sys > print sys.version > > 2) where is tkinter installed, and is it the right place for this instance > of python? You can see your Python's search path with the following: > import sys > print sys.path > > Generally, standard libraries are installed in the lib directory, and 3rd > party libraries are installed in site-packages. > > > DaveA > -- madhuri :)
-- http://mail.python.org/mailman/listinfo/python-list