正文
pip2 install M2Crypto
# 报错:
# unable to execute 'swig': No such file or directory
# error: command 'swig' failed with exit status 1
# 解决:
sudo apt install swig
# 继续 pip2 install M2Crypto,又报错:
# src/SWIG/_m2crypto_wrap.c:149:21: fatal error: Python.h: 没有那个文件或目录
# 解决:
apt-get install python-dev
pip2 install M2Crypto
# 安装成功
标签:pip2,swig,apt,M2Crypto,报错,install,ubuntu16
From: https://www.cnblogs.com/brian-sun/p/17451652.html