简体   繁体   中英

How to install tkinter for python3.8 on Ubuntu?

I am using sudo apt-get install -y to install tkinter, but Python keeps giving me a 安装 tkinter,但 Python 不断给我一个

I have read all the similar questions, but I did not found any proper solution so far. It should be possible to install tkinter from anywhere without rebuilding it from source, shouldn't it?

For reproduction, here is my exact setup:

I'd be thankful for any tip. I also wanted to create an issue, but apparently, there is no separate python repository for tkinter with an issue tracker.

you just need to use this command:

sudo apt-get install -y python3-tk

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