我试图安装python-docx,所以我输入了cmd
easy_install python-docx
并得到了:
Searching for python-docx
Best match: python-docx 0.7.4
Processing python_docx-0.7.4-py2.6.egg
python-docx 0.7.4 is already the active version in easy-install.pth
Using c:\python26\lib\site-packages\python_docx-0.7.4-py2.6.egg
Processing dependencies for python-docx
Finished processing dependencies for python-docx
但是当我打开python并键入:
导入docx
我得到了:
File "c:\python26\lib\site-packages\docx-0.2.4-py2.6.egg\docx.py", line 17, in <
module>
from lxml import etree
ImportError: DLL load failed: The specified procedure could not be found.
如何解决此导入错误? 缺少什么?
我也得到了同样的"DLL加载失败"错误。 我犯了一个愚蠢的错误,但已经在64位Windows上安装了32位Python. 未安装的32位版本,安装的64位版本-问题排序。