安装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 "", line 1, in
  File "/home/bluedon/cuckoo/venv/local/lib/python2.7/site-packages/M2Crypto/__init__.py", line 26, in
    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
    from M2Crypto import BIO, m2, util
  File "/home/bluedon/cuckoo/venv/local/lib/python2.7/site-packages/M2Crypto/BIO.py", line 10, in
    from M2Crypto import m2, util
  File "/home/bluedon/cuckoo/venv/local/lib/python2.7/site-packages/M2Crypto/m2.py", line 30, in
    from M2Crypto._m2crypto import *
  File "/home/bluedon/cuckoo/venv/local/lib/python2.7/site-packages/M2Crypto/_m2crypto.py", line 26, in
    __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 的话,就要有耗费段时间了...

http://askubuntu.com/questions/581648/install-package-into-virtualenv-using-apt-get(我没有成功, 放弃使用venv..)

你可能感兴趣的:(安装cuckoo的requirements.txt出现的问题和解决)