Environment deepin2014rc
Running goagent prompts that pyopenssl is missing
So sudo pip2.7 install pyopenssl but an error is reported:
C/_ cffi_backend.c: 14: 17: Fatal error: ffi. h: no such file or directory
# Include <ffi. h>
Solution:
Sudo apt-Get install apt-File
Apt-file update
Apt-file search/ffi. h
After libffi-Dev is installed, install pyopenssl in PIP mode.
But there are still errors:
C/_ cffi_backend.c: 2: 20: Fatal error: Python. h: no such file or directory
# Include <python. h>
Solution: sudo apt-Get install Python-Dev
Then try to install pyopenssl in PIP mode, but the following error is still reported:
Cryptography/Hazmat/bindings/_ pycache _/_ cryptography_cffi_444d71_xa22f8491.c: 165: 25: Fatal error: OpenSSL/AES. H: No file or directory
# Include <OpenSSL/AES. h>
Solution:
Sudo apt-Get install libssl0.9.8
Sudo apt-Get install libssl-Dev
Sudo apt-Get install libssh-Dev
So far, run sudo pip2.7 install pyopenssl again to successfully install pyopenssl
This article is from the "rhce" blog, please be sure to keep this source http://yueyizx.blog.51cto.com/4006053/1430518