1. pip install cryptography error
(1) Error msg
build/temp.linux-x86_64-2.7/_openssl.c:434:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
(2) solve
apt-get install -y libpq-dev libssl-dev
2. python install psycopg2-2.6.2 error
(1) error message
g_config executable not found. Please add the directory containing pg_config to the PATH or specify the full executable path with the option: python setup.py build_ext --pg-config /path/to/pg_config build ... or with the pg_config option in 'setup.cfg'.
(2) solve
yum install postgresql-devel*