关于网友提出的“(python)安装scrapy的过程中出现的问题”问题疑问,本网通过在网上对“(python)安装scrapy的过程中出现的问题”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题:(python)安装scrapy的过程中出现的问题
描述:import lxml
import twisted
import zope.interface
都是OK的。
当import OpenSSL
时出现
错误提示:
Traceback (most recent call last):
File "", 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/
解决方案1:缺少 openssl 相关的 dll,或者你跟前几天QQ群里的一位一样,版本不匹配。如果你安装的是32位 Python,请不要使用64位库。文件名里没有 amd64 的安装包就是32位的。
以上介绍了“(python)安装scrapy的过程中出现的问题”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/1530263.html