安装cuckoo的requirements.txt出现的问题和解决


安装Cuckoo Sandbox 2.0-rc1 需要的库

直接 pip install -r requirements.txt -i http://pypi.douban.com/simple/ 会提示以下错误.

Downloading/unpacking pefile from http://pefile.googlecode.com/files/pefile-1.2.10-139.tar.gz (from -r requirements.txt (line 20))
  HTTP error 404 while getting http://pefile.googlecode.com/files/pefile-1.2.10-139.tar.gz
  Could not install requirement pefile from http://pefile.googlecode.com/files/pefile-1.2.10-139.tar.gz (from -r requirements.txt (line 20)) because of error HTTP Error 404: Not Found
Could not install requirement pefile from http://pefile.googlecode.com/files/pefile-1.2.10-139.tar.gz (from -r requirements.txt (line 20)) because of HTTP error HTTP Error 404: Not Found for URL http://pefile.googlecode.com/files/pefile-1.2.10-139.tar.gz
Storing complete log in /root/.pip/pip.log


通过google得知把requirements.txt里的pefile的那一行替换为pefile==2016.3.28之后,

pip install -r requirements.txt -i http://pypi.douban.com/simple/ 

之后发现提示要pip install  m2crypto
然而pip install 后还是提示, 在Python交互环境里import  m2crypto:


Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/bluedon/cuckoo/venv/local/lib/python2.7/site-packages/M2Crypto/__init__.py", line 26, in <module>
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/home/bluedon/cuckoo/venv/local/lib/python2.7/site-packages/M2Crypto/ASN1.py", line 15, in <module>
    from M2Crypto import BIO, m2, util
  File "/home/bluedon/cuckoo/venv/local/lib/python2.7/site-packages/M2Crypto/BIO.py", line 10, in <module>
    from M2Crypto import m2, util
  File "/home/bluedon/cuckoo/venv/local/lib/python2.7/site-packages/M2Crypto/m2.py", line 30, in <module>
    from M2Crypto._m2crypto import *
  File "/home/bluedon/cuckoo/venv/local/lib/python2.7/site-packages/M2Crypto/_m2crypto.py", line 26, in <module>
    __m2crypto = swig_import_helper()
  File "/home/bluedon/cuckoo/venv/local/lib/python2.7/site-packages/M2Crypto/_m2crypto.py", line 22, in swig_import_helper
    _mod = imp.load_module('__m2crypto', fp, pathname, description)
ImportError: /home/bluedon/cuckoo/venv/local/lib/python2.7/site-packages/M2Crypto/__m2crypto.so: undefined symbol: SSLv2_method
目前pip install 这个库会出问题 #  https://github.com/saltstack/salt/issues/391
如果不是virtualenv ,  apt-get install m2crypto即可. 如果是virtualenv 的话,就要有耗费段时间了...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值