Closed. This question is off-topic。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
                        
                        已关闭8年。
                                                                                            
                
        
我的gentoo上的默认python版本是python2,
并且gentoo上安装的默认python不支持Tkinter。
将以下行添加到/etc/portage/package.use之后

dev-lang/python tk


然后出现python,它只显示:
[ebuild R] dev-lang / python-3.1.3-r1 USE =“ examples gdbm ipv6 ncurses readline sqlite ssl线程tk(宽unicode)xml -build -doc -wininst” 0 kB

没有python2!....

如何在python2中添加Tkinter支持?

最佳答案

您是否尝试过明确指定要安装的Python版本,例如emerge =python-2.7.2-r2

关于python - 如何在我的gentoo上将Tkinter支持添加到python2? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/6911926/

10-14 18:16
查看更多