How to Solve the "Cannot find pyconfig.h" Error Last week, I had an error when installing cryptography by pip. Then I did a lot of searches, and most of the answers told me to install python-devel, but it still didn't work after I installed that, which drove me crazy. By the way, my process was running on Centos