加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

easy_install M2Crypto在Windows平台上失败

发布时间:2020-12-14 02:09:17 所属栏目:Windows 来源:网络整理
导读:我试图在 Windows XP平台上安装M2Crypto.我安装了 Python,easy_install和SWIG,但是当我尝试easy_install M2Crypto时,我得到以下内容: SWIG_m2crypto.i(31) : Error: Unable to find 'opensslopensslv.h'SWIG_m2crypto.i(45) : Error: Unable to find 'op
我试图在 Windows XP平台上安装M2Crypto.我安装了 Python,easy_install和SWIG,但是当我尝试easy_install M2Crypto时,我得到以下内容:

SWIG_m2crypto.i(31) : Error: Unable to find 'opensslopensslv.h'
SWIG_m2crypto.i(45) : Error: Unable to find 'opensslsafestack.h'
SWIG_evp.i(12) : Error: Unable to find 'opensslopensslconf.h'
SWIG_ec.i(7) : Error: Unable to find 'opensslopensslconf.h'
error: Setup script exited with error: command 'swig.exe' failed with exit status 1

我在其他地方读过人们建议使用easy_install openssl-devel,但这只是告诉我没有找到包含该名称的软件包.该名称是否区分大小写(我尝试了各种排列而没有成功),或者该建议不适用于Windows?

我不是在寻找M2Crypto的替代品.我正在挑选一些使用它的现有代码,所以我需要让我的开发环境能够运行已经编写的代码.

解决方法

有类似的问题.下载M2Crypto的源包并读取INSTALL文件后,我发现以下内容:

Differences when installing on Windows
--------------------------------------

Before building from source,you need to install OpenSSL's include files,import libraries and DLLs. By default setup.py assumes that OpenSSL include
files are in ``c:pkgopensslinclude``,and the import libraries 
in ``c:pkgopenssllib``. As with other platforms,you can specify a different
OpenSSL location with --openssl option to build_ext command.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读