我被困了一段时间。我的配置是python 3.5
:xlwings 0.5.0
和Windows 7
。我在尝试时得到以下回溯import xlwings
:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\Python 3.5\lib\site-packages\xlwings\__init__.py", line 20, in <module>
from . import _xlwindows as xlplatform
File "C:\Program Files\Python 3.5\lib\site-packages\xlwings\_xlwindows.py", line 15, in <module>
import pywintypes
File "C:\Program Files\Python 3.5\lib\site-packages\win32\lib\pywintypes.py", line 124, in <module>
__import_pywin32_system_module__("pywintypes", globals())
File "C:\Program Files\Python 3.5\lib\site-packages\win32\lib\pywintypes.py", line 117, in __import_pywin32_system_module__
assert sys.modules[modname] is not old_mod
AssertionError
在互联网上进行了一番搜索后,我的理解是问题来自 pywin32 '已知问题',但我不确定它是怎么回事。你能帮忙吗?