我非常喜欢使用 adodbapi 模块,但我无法导入它。Python 3.2 32 位的最新版本似乎有语法错误:
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 4.5.4\helpers\pydev\pydevd.py", line 2358, in <module>
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 4.5.4\helpers\pydev\pydevd.py", line 1778, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 4.5.4\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Customers/Calvert/Scripts/test_adodb.py", line 1, in <module>
import adodbapi
File "C:\Python32\lib\site-packages\adodbapi\__init__.py", line 16, in <module>
from .apibase import apilevel, threadsafety, paramstyle
File "C:\Python32\lib\site-packages\adodbapi\apibase.py", line 495
raise er,'No such key as "%s" in %s'%(repr(key),self.__repr__()),tr
我该怎么做才能解决这个问题?这是为 Python 3 设计的文件中的 Python 2 语法吗?我从 SourceForge 下载的文件名为 pywin32-220.win32-py3.2.exe,日期为 1/11/16。