简体   繁体   中英

How do I install tkinter on an Amazon Linux EC2 instance?

I am working on an EC2 instance with Amazon linux and python 3.5. I have a package which at some point imports tkinter directly (differing from this question: Install Tkinter On Amazon Linux where it's imported by matplotlib ).

Let's say I don't want to modify this script, is there a way to install tkinter outside of Anaconda (because I know that it works with Anaconda, since someone else is able to use tkinter with Anaconda).

I have checked the presence in yum search and did not really understand how to build it from source.

This previous question goes into some detail on how to get it to install. With it being a headless Linux there's some additional hoops to jump through to get it to actually install.

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