我正在尝试安装pysnap https://github.com/martinp/pysnap
当我运行“python setup.py install”时,我收到以下错误。
Installed /private/var/folders/d7/qskwdy2j2615x_nr65rprs_00000gn/T/easy_install-rmJEmc/cryptography-1.3.1/.eggs/pycparser-2.14-py2.7.egg
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
build/temp.macosx-10.11-intel-2.7/_openssl.c:423:10: fatal error:
'openssl/e_os2.h' file not found
#include <openssl/e_os2.h>
^
1 error generated.
error: Setup script exited with error: command 'cc' failed with exit status 1
我安装了OpenSSL(OpenSSL 0.9.8zg,2015年7月14日)。有什么可能导致错误的想法吗?
答案 0 :(得分:3)
解决方案很简单,只需安装libssl-dev软件包即可。我这样做了,我的10个小时的努力终于得到了回报。我得到了同样的错误,我抓了近10个小时。只需安装包装即可摇滚。