解决 安装pycrypto时失败,报错:err: command ‘gcc’ failed with exit status 1 本质上是缺少了相关依赖。 centos执行: yum install gcc gcc-c++ python3-devel pycrypto ubuntu执行: sudo apt-get install libpq-dev sudo apt-get install build-dep python-psycopg2