简体   繁体   English

如何在Python3.6 Centos7离线版中安装Tkinter

[英]How to Install Tkinter in Python3.6 Centos7 Offline

I'm trying to install Tkinter (since I get no module named '_tkinter' errors) on an offline Centos7 machine. 我正在尝试在离线Centos7机器上安装Tkinter(因为我没有名为'_tkinter'的模块)。 Thus pip install / apt-get won't work. 因此pip install / apt-get将无法正常工作。

I have tkinter for python2.7 and tried copying the folders over but no luck. 我有python2.7的tkinter并尝试复制文件夹但没有运气。 It seems there doesn't exist wheel files for 3.6 for tkinter. 对于tkinter来说似乎没有3.6的轮文件。

Is there a way I can get the version of Python3.6 to look at the Tkinter from Python2.7? 有没有办法让Python3.6的版本从Python2.7中查看Tkinter?

Thanks 谢谢

试试这个Tkinter的文件夹,像你这样了Python 2.7版本https://github.com/python/cpython/blob/3.7/Lib/tkinter/ 初始化的.py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM