2019年2月14日 星期四

[linux] ubuntu 18.04 pip install M2Crypto SWIG/_m2crypto_wrap.c:3557:10: fatal error: openssl/err.h: No such file or directory

[linux] ubuntu 18.04 pip install M2Crypto SWIG/_m2crypto_wrap.c:3557:10: fatal error: openssl/err.h: No such file or directory

pip install M2Crypto 時發生下面 error

SWIG/_m2crypto_wrap.c:3557:10: fatal error: openssl/err.h: No such file or directory

sudo apt-get install swig
sudo apt-get install libssl1.0-dev

pip install M2Crypto==0.24.0

```
swig - Generate scripting interfaces to C/C++ code
libssl1.0-dev - Secure Sockets Layer toolkit - development files
```

ref:
Trouble installing m2crypto with pip on OS X / macOS - Stack Overflow https://stackoverflow.com/questions/33005354/trouble-installing-m2crypto-with-pip-on-os-x-macos

沒有留言:

張貼留言