Sudo pip2.7 install pyopenssl failed, Solution

Source: Internet
Author: User
Tags ffi

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.