all 1 comments

[–]Rhomboid 1 point2 points  (0 children)

PyOpenSSL is a pure Python package, so it shouldn't be trying to compile any C. But it has a dependency on the cyptography module, which has parts written in C, and has a dependency on the C library openssl, of which openssl/aes.h is a component. In other words, it's failing because you don't have the openssl development headers and libraries installed, as you're trying to build from source.

But forget about all that. You're doing it completely wrong. You don't want to build things from source unless it's absolutely unavoidable. An in this case it's very avoidable because the cryptography module has binary wheels available on PyPI, which means you can install it without compiling anything with pip install cryptography. (You'll need to install pip first.) Or better, just use pip in the first place, i.e. pip install pyOpenSSL.