Windows上使用python 3.5的xlwings
作者:互联网
我被困了一段时间.我的配置是:python 3.5,xlwings 0.5.0和Windows7.我在尝试导入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“已知问题”,但我不确定这是怎么回事.你能帮忙吗?
解决方法:
目前,在Python 3.5上安装pywin32的唯一简单选择是使用Anaconda发行版. sourceforge的official binaries似乎不适用于Python 3.5.另外,还没有unofficial binaries.
标签:python-3-5,python,windows,xlwings 来源: https://codeday.me/bug/20191013/1906520.html