玩蛇网提供最新Python编程技术信息以及Python资源下载!

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

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/

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

玩蛇网文章,转载请注明出处和文章网址:https://www.iplaypy.com/wenda/wd19070.html

相关文章 Recommend

玩蛇网Python互助QQ群,欢迎加入-->: 106381465 玩蛇网Python新手群
修订日期:2017年05月18日 - 10时07分59秒 发布自玩蛇网

您现在的位置: 玩蛇网首页 > Python问题解答 > 正文内容
我要分享到:

必知PYTHON教程 Must Know PYTHON Tutorials

必知PYTHON模块 Must Know PYTHON Modules