相关疑难解决方法(0)

如何在centos中安装python3-tk?

我需要安装python3-tk才能使用matplotlib.

I have tried: 

(python_3.4_numerical) [lpuggini@machinelearn-1 ~]$ sudo yum install python3-tk
[sudo] password for lpuggini: 
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.clouvider.net
 * epel: epel.check-update.co.uk
 * extras: mirror.sov.uk.goscomb.net
 * updates: mirrors.clouvider.net
No package python3-tk available.
Error: Nothing to do
(python_3.4_numerical) [lpuggini@machinelearn-1 ~]$ 
Run Code Online (Sandbox Code Playgroud)

但它不起作用.

我该如何解决?

编辑:从pip安装不起作用:

(python_3.4_numerical) [lpuggini@machinelearn-1 ~]$ pip install pygtk
Collecting pygtk
  Using cached pygtk-2.24.0.tar.bz2
    Complete output from command python setup.py egg_info:
    ********************************************************************
    * Building PyGTK using distutils is only supported on windows. …
Run Code Online (Sandbox Code Playgroud)

python centos tkinter matplotlib

11
推荐指数
2
解决办法
2万
查看次数

标签 统计

centos ×1

matplotlib ×1

python ×1

tkinter ×1