python2.6 import error

i am porting my python script written on 3 to 2.6 and i am getting below errors and i could not find out the equivalent imports.

import win32com.client
from Tkinter import FileDialog

How to fix these issues ?

Using Python 2.6.5

Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information.

****************************************************************
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 ==== No Subprocess ====

Thanks You


The win32com module is not included with Python, you need to install it. The tk filedialog is in tkFileDialog.

See also Reorganizations and renamings chapter from the book.

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

上一篇: 安装python

下一篇: python2.6导入错误