我需要安装python3-tk才能使用matplotlib。如何在centos中安装python3-tk?
I have tried:
(python_3.4_numerical) [[email protected] ~]$ 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) [[email protected] ~]$
但它不工作。
我该如何解决?
编辑: 从PIP安装不起作用:
(python_3.4_numerical) [[email protected] ~]$ 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. *
* To build PyGTK in a supported way, read the INSTALL file. *
********************************************************************
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-nzjsuhx3/pygtk/
(python_3.4_numerical) [[email protected] ~]$
安装python-pip为您的python 3.4安装并使用它。 –
我已经尝试从点子isntall,但它不起作用。什么是正确的命令? – Donbeo
大多数Linux已经安装了Python,所以你不必安装。你有没有在Python中检查'import tkinter'? – furas