Python安装scrapy报ImportError: DLL load failed: %1问题怎么解决,scrapyimporterror,import lxmli


import lxmlimport twistedimport zope.interface

都是OK的。
当import OpenSSL时出现
错误提示:
Traceback (most recent call last):
File "<pyshell#4>", line 1, in
import OpenSSL
File "D:\python install\lib\site-packages\OpenSSL__init__.py", line 13, in
from OpenSSL import crypto
ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。

我安装的是pyOpenSSL-0.13.1.win-amd64-py2.7.exe

具体安装方法参照SF用户wh1100717提供的方法http://poly.emptystack.net/python/scrapy/installation/

缺少 openssl 相关的 dll,或者你跟前几天QQ群里的一位一样,版本不匹配。如果你安装的是32位 Python,请不要使用64位库。文件名里没有 amd64 的安装包就是32位的。

编橙之家文章,

评论关闭