安裝Python如何使用tcl/Tk這module

Home Home
引用 | 編輯 tp0a1
2006-12-09 00:42
樓主
推文 x0
安裝完tk8.4與tcl8.4
> >> Python 2.4 (#1, Nov 30 2004, 08:58:13)
> >> [GCC 3.2.3 20030316 (Debian prerelease)] on linux2
> >> Type "help", "copyright", "credits" or "license" for more
> >> information.
> >> >>> import Tkinter
> >> Traceback (most recent call last):
> >> File "<stdin>", line 1, in ?
> >> File "/usr/local/lib/python2.4/lib-tk/Tkinter.py", line 38, in ?
> >> import _tkinter # If this fails your Python may not be configured
> >> for Tk
> >> ImportError: No module named _tkinter
我確認過我有"/usr/local/lib/python2.4/lib-tk/Tkinter.py"但是不知為何無法執行
希望有經驗的大大可以幫助我
拜託了

獻花 x0
引用 | 編輯 mnbmnb5266
2010-08-20 23:43
1樓
  
我覺得問題應該是出在安裝TCL的時候你沒有調好設定造成的。重新安裝一邊,並且在初始設定上注意一下也許就可以了

獻花 x0