安装pyopenssl时找不到'ssleay32.dll'错误

时间:2016-09-04 14:40:33

标签: python-2.7 pip pyopenssl

我经常看到这个错误,我尝试将ssleay32.dll复制到系统目录,但错误仍然存​​在。

有人可以帮我解决一下吗?

<...>
Collecting pyOpenSSL==0.13.1 (from -r requirements.txt)
  Using cached pyOpenSSL-0.13.1.tar.gz
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info\pyOpenSSL.egg-info
    creating pip-egg-info\pyOpenSSL.egg-info\PKG-INFO
    writing top-level names to pip-egg-info\pyOpenSSL.egg-info\top_level.txt
    writing dependency_links to pip-egg-info\pyOpenSSL.egg-info\dependency_links.txt
    writing manifest file 'pip-egg-info\pyOpenSSL.egg-info\SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found

    error: could not find 'ssleay32.dll'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\niyer\desktop\temp\pip-build-zgixxx\pyOpenSSL\

1 个答案:

答案 0 :(得分:0)

0.13.1是一个非常古老的版本。目前的(截至撰写本文时)是16.1.0。消息is not even in the repo anymore的代码。你真的对这么老的代码库特别感兴趣吗?

新版本依赖于statically linked version of openssl in its dependency module, cryptography,因此您无需再担心在其他地方使用它了。