安装scrapy的过程中出现的问题

import lxml
import twisted
import 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/

阅读 6.1k
1 个回答

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

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题