pip无法在python 2.7中安装tkinter

2024-06-08 00:34:05 发布

您现在位置:Python中文网/ 问答频道 /正文

So this is what is actually happening guys

我本来可以更改python版本,但我不会这么做,因为我必须用python 2.7编写考试,我不想搞糊涂。
那你有什么办法修理那些家伙吗?


Tags: 版本soisthiswhatguys办法家伙
2条回答

Python和Tkinter一起。。。试试看

>>> import Tkinter

在python解释器中。

编辑:证明(Python2.6的原始版本)

Python 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
>>> Tkinter
<module 'Tkinter' from 'C:\Python26\lib\lib-tk\Tkinter.pyc'>
>>>

Tkinter附带Python2.7,只需使用 导入Tkinter

然后Tkinter

资本化工程“T”

相关问题 更多 >

    热门问题