安装Tkinter而不访问root

时间:2017-09-08 16:09:31

标签: python-3.x tkinter

我无法访问我的centos7的根目录,我想从源代码安装Tkinter,在我下载Tcl和tk8后我跟着附加的链接,但是在写完之后我遇到了这个问题 "使"第二步

In file included from /home/rebali/Downloads/tk8.7a1/unix/../generic/tkPort.h:21:0,
from /home/rebali/Downloads/tk8.7a1/unix/../generic/tkInt.h:19,
from /home/rebali/Downloads/tk8.7a1/unix/../generic/tkStubLib.c:14:
/home/rebali/Downloads/tk8.7a1/unix/../generic/tk.h:96:25: fatal error: X11/Xlib.h: No such file or directory
# include <X11/Xlib.h>
^
compilation terminated.
make: *** [tkStubLib.o] Error 1


frist step
 cd/Downloads/tcl8.7a1/unix
./configure --prefix=/home/rebali/cnel711 --exec-prefix=/home/rebali/cnel711
make 
make install

second step
  cd/Downloads/tk8.7a1/unix

./configure --prefix=/home/rebali/cnel711 --exec-prefix=/home/rebali/cnel711 --with-tcl=/home/rebali/cnel711/lib
make 
make install

Install tkinter for Python

0 个答案:

没有答案