python2.6导入错误

我移植我的Python脚本写在3到2.6,我得到以下错误,我无法找到等价的进口。

import win32com.client
from Tkinter import FileDialog

如何解决这些问题?

使用Python 2.6.5

Python 2.6.5(r265:79096,2010年3月19日,21:48:26)win32上的[MSC v.1500 32位(Intel)]输入“copyright”,“credits”或“license()”以获取更多信息。

****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface.  This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************

IDLE 2.6.5 ====没有子进程====

谢谢


win32com模块不包含在Python中,你需要安装它。 tk filedialog在tkFileDialog中。

另请参阅本书中的重组和重新编辑章节。

链接地址: http://www.djcxy.com/p/48661.html

上一篇: python2.6 import error

下一篇: What's wrong with my regular expression?