Python 3.x 在不访问根目录的情况下安装Tkinter

Python 3.x 在不访问根目录的情况下安装Tkinter,python-3.x,tkinter,Python 3.x,Tkinter,我没有访问centos7的根目录的权限,我想从源代码安装Tkinter,在下载Tcl和tk8之后,我遵循了所附的链接,但在我写下Tcl和tk8之后,我遇到了这个问题 “make”用于第二步 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 /h

我没有访问centos7的根目录的权限,我想从源代码安装Tkinter,在下载Tcl和tk8之后,我遵循了所附的链接,但在我写下Tcl和tk8之后,我遇到了这个问题 “make”用于第二步

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
包含在/home/rebali/Downloads/tk8.7a1/unix/./generic/tkPort.h:21:0中的文件中,
从/home/rebali/Downloads/tk8.7a1/unix/。/generic/tkInt.h:19,
从/home/rebali/Downloads/tk8.7a1/unix/。/generic/tkStubLib.c:14:
/home/rebali/Downloads/tk8.7a1/unix/。/generic/tk.h:96:25:致命错误:X11/Xlib.h:没有这样的文件或目录
#包括
^
编译终止。
make:**[tkStubLib.o]错误1
第一步
cd/Downloads/tcl8.7a1/unix
./configure--prefix=/home/rebali/cnel711--exec prefix=/home/rebali/cnel711
制作
安装
第二步
cd/Downloads/tk8.7a1/unix
./configure--prefix=/home/rebali/cnel711--exec prefix=/home/rebali/cnel711--with tcl=/home/rebali/cnel711/lib
制作
安装

错误信息非常清楚:您需要
X11/Xlib.h
文件。我猜您需要安装
libx11 dev
软件包(它应该在Debian上;我不知道redhat的情况)。@Novel这就是问题所在,如果我们没有root权限,如何安装libx11?错误消息非常清楚:您需要
X11/Xlib.h
文件。我猜您需要安装
libx11 dev
软件包(它应该在Debian上;我不知道redhat的情况)。@Novel这就是问题所在,如果我们没有root权限,如何安装libx11?