【发布时间】:2013-04-04 12:29:19
【问题描述】:
我正在将我在 3 上编写的 python 脚本移植到 2.6,我遇到了错误,我找不到等效的导入。
import win32com.client
from Tkinter import FileDialog
如何解决这些问题?
使用 Python 2.6.5
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32 输入“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 ==== 没有子进程 ====
谢谢你
【问题讨论】:
-
什么?我不明白这个问题?
-
我收到从 Tkinter 导入文件对话框导入 win32com.client 的导入错误:ImportError: No module named...
-
为 2.6 安装那些模块?
-
我找不到 2.6 的 FileDialog 模块
-
from Tkinter import FileDialog 是我的导入语句,当我执行时,我得到 Traceback(最近一次调用最后一次):文件“D:\Squish\Run_Test.py”,第 23 行,在
中Tkinter import FileDialog ImportError: cannot import name FileDialog
标签: python python-2.7 python-3.x