easy_install M2Crypto在Windows平台上失败 [英] easy_install M2Crypto failing on Windows platform

查看:272
本文介绍了easy_install M2Crypto在Windows平台上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows XP平台上安装M2Crypto.我已经安装了Python,easy_install和SWIG,但是当我尝试easy_install M2Crypto时,我得到了以下信息:

I am attempting to install M2Crypto on a Windows XP platform. I have Python, easy_install and SWIG installed, but when I attempt to easy_install M2Crypto I get the following:

SWIG\_m2crypto.i(31) : Error: Unable to find 'openssl\opensslv.h'
SWIG\_m2crypto.i(45) : Error: Unable to find 'openssl\safestack.h'
SWIG\_evp.i(12) : Error: Unable to find 'openssl\opensslconf.h'
SWIG\_ec.i(7) : Error: Unable to find 'openssl\opensslconf.h'
error: Setup script exited with error: command 'swig.exe' failed with exit status 1

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

I have read elsewhere that people have suggested easy_install openssl-devel, but that simply tells me that there are no packages found with that name. Is the name perhaps case-sensitive (I've tried various permutations without success), or does that advice not apply to Windows?

我不是在寻找M2Crypto的替代产品.我正在使用一些使用它的现有代码,因此我需要获得开发环境以能够运行已编写的代码.

I'm not looking for alternatives to M2Crypto. I am picking up some existing code that uses it, so I need to get my development environment to be able to run what's already written.

推荐答案

遇到类似的问题.下载M2Crypto的源程序包并阅读安装文件后,我发现了以下内容:

Had a similar problem. After downloading the source package of M2Crypto and reading the INSTALL file I found the following:

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:\pkg\openssl\include``, and the import libraries 
in ``c:\pkg\openssl\lib``. As with other platforms, you can specify a different
OpenSSL location with --openssl option to build_ext command.

这篇关于easy_install M2Crypto在Windows平台上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆