简体   繁体   中英

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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