python2.6导入错误

python2.6导入错误,python,python-2.7,python-3.x,Python,Python 2.7,Python 3.x,我将在3到2.6版本上编写的python脚本移植到了下面的错误,我无法找到等效的导入 import win32com.client from Tkinter import FileDialog 如何解决这些问题 使用Python 2.6.5 win32上的Python 2.6.5(r265:790962010年3月19日21:48:26)[MSC v.1500 32位(英特尔)] 有关详细信息,请键入“copyright”、“credits”或“license()” *************

我将在3到2.6版本上编写的python脚本移植到了下面的错误,我无法找到等效的导入

import win32com.client
from Tkinter import FileDialog
如何解决这些问题

使用Python 2.6.5

win32上的Python 2.6.5(r265:790962010年3月19日21:48:26)[MSC v.1500 32位(英特尔)] 有关详细信息,请键入“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.
****************************************************************
空闲2.6.5===无子进程====


感谢您

Python中不包含win32com模块,您需要安装它。 tk文件对话框位于tkFileDialog中


另见

什么?我不明白这个问题?我从Tkinter import FileDialog收到导入win32com.client的导入错误错误:ImportError:没有名为…的模块安装2.6版的模块?我无法从Tkinter import FileDialog找到2.6版的FileDialog模块。Dialog是我的导入语句,执行时得到回溯(最近一次调用):文件“D:\Squish\Run_Test.py”,第23行,从Tkinter导入文件对话框导入错误:无法导入名称文件对话框