- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在尝试在 Windows XP 平台上安装 M2Crypto。我安装了 Python、easy_install 和 SWIG,但是当我尝试 easy_install M2Crypto
时,我得到以下信息:
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?
我不是在寻找 M2Crypto 的替代品。我正在挑选一些使用它的现有代码,所以我需要让我的开发环境能够运行已经编写的代码。
最佳答案
正如杰伊在他的回答中所说,您应该尝试从源代码构建它。我试过了。 setup.py
无法识别 --openssl
选项。查看默认 setup.py
的输出,我意识到搜索位置是 c:\pkg
而不是 c:\pkg\openssl
.解决方案:
lib
和 include
文件夹复制到 c:\pkg
swig.exe
在您的路径中是否可用easy_install M2Crypto
对我来说就像一个魅力。
关于windows - easy_install M2Crypto 在 Windows 平台上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6436771/
这与 this 有关我刚才问的问题。 最终结果是我希望能够安装我的包“identity.model”和所有依赖项。像这样... $ easy_install -f http://eggs.sadpha
我刚刚将 python 升级到 3.4 版。但是,由于某种原因,默认情况下并未安装 pip。所以我尝试使用命令“sudo easy_install pip”安装 pip。但是当我输入命令时,它给了我一
对于 Python 3.2,推荐什么:easy_install-3.2 或 easy_install? 为什么有两个高管?有什么不同? 还有一个问题:distribute 还是 setuptools?
我用easy_install安装pip,用pip安装django、virtualenv和virtualenvwrapper。 几周后我刚刚回到它,django 似乎不再工作了,但更令人担忧的是我无法重
尝试easy_install时fabric (或 easy_install pycrypto ,它取决于结构),我在 Mac OS X 上遇到以下链接器错误: ld: illegal text-rel
我使用的是 Mac OS X。我通过在终端中输入 easy_install networkx 来安装 networkx。终端显示 networkx 的已完成处理依赖项。但是,当我将 import ne
任何有关导致以下错误的想法吗? 我将Linux centos与openssl-devel.i386 0.9.8e-12.el5_5.7结合使用 $ easy_install PyOpenSSL Sea
是否有一种简单的方法来获取所有通过 easy_install 安装的具有更新版本的 Python 库的报告?我不想简单地在已知已安装库的列表上重新运行 easy_install,因为较新的库可能具有非
作为前言,我目前正在运行 OSX 10.9.1 和 Python 2.7。 我想使用 easy_install 安装 Python 包(在本例中为 pip)。首先我尝试: easy_install p
我正在尝试安装 ReportLab ,但我没有可用于编译 rl_accel 库的 C 编译器。使用 setup.py,我会像这样添加一个额外的参数: python setup.py --rl_acce
当尝试安装包时,easy_install 要求我升级分发: The required version of distribute (>=0.6.35) is not available, and ca
我正在尝试使用 easy_install 安装以 egg 格式打包的 python 脚本。问题是 easy_install 将依赖项下载到/tmp。但是,我的 tmp 目录只有 4mb 的可用空间(我
所以我使用 stow 在服务器上安装了 Python 2.7.1 源代码 .我过去很粗心,在处理源代码安装时我试图保持井井有条。所以,输入 stow。现在我使用 wget 安装了 easy_insta
当我easy_install一些python模块时,警告如: : module references __file__ : module references __path__ : module MA
有时我需要猜测包名,是否有任何包搜索实用程序,例如 apt/yum/port/brew 中的搜索命令... 最佳答案 没有,但您可以在线搜索 PyPi ,这是 easy_install、pip 等人使
我的 mac 上有两个版本的 python: Apple 预装在 /usr/bin 来自 python.org 的 /Library/Frameworks/Python.framework/Versi
有没有办法配置 easy_install 以避免在安装失败时重新下载文件? 最佳答案 13 年后更新:easy_install 已于 2021 年 1 月从 Python 中移除。python 包管理
我想安装 sphinx,网站说要使用: easy_install -U Sphinx 安装此命令后会发生什么?我也会得到来源吗?它会安装在哪里? 最佳答案 在 Ubuntu 上,我相信它会安装到/us
我正在从旧的 Win2K 机器迁移到新的、功能更强大的 Vista 64 位 PC。大部分迁移进行得相当顺利 - 但我确实发现我需要重新安装所有与 Python 相关的工具。 我已经下载了 mecha
我尝试安装 SimpleCV 包: C:\>easy_install C:\Python27\lib\site-packages\simplecv-1.2-py2.7.egg Processing s
我是一名优秀的程序员,十分优秀!