简体   繁体   中英

what is missing that prevents my IDLE from working?

Installed Ubuntu 10.10 and Python 2.5.5. IDLE did not start from the terminal so I went into the Python interpreter and did "import _tkinter". The package was not found. After searching a bit, I found that Ubuntu/debian might not include _tkinter so I proceeded to "sudo apt-get install python-tk" as per my searches.

Still the interpreter cannot find _tkinter. What next?

There's an IDLE package in the Ubuntu software center that you can install. Install that and IDLE will work.

UPDATE

It is indeed in the Ubuntu software center on Ubuntu 10.10. Evidence: 替代文字

Use Synaptic Package Manager (System > Administration > Synaptic Package Manager). Search for "idle".

The problem has been solved in another thread. The solution is to install tk-dev before installing Python 2.5.5 (on Ubuntu 10.10 which came with Python 2.6).

TK_LIBRARY and TCL_LIBRARY environment variables on Ubuntu

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM