在使用fab的时候报错:
pkg_resources.DistributionNotFound: The ‘cryptography>=1.1‘ distribution was not found and is required by paramiko
语义翻译:
cryptography 版本过低,需要安装1.1以上版本;
所以执行:
pip install cryptography
报类似错误:
build/temp.linux-x86_64-2.6/_openssl.c:72268: 错误:‘_cffi_f_sk_X509_push’未声明(不在函数内)
build/temp.linux-x86_64-2.6/_openssl.c:72269: 错误:‘_cffi_f_sk_X509_value’未声明(不在函数内)
build/temp.linux-x86_64-2.6/_openssl.c:73004: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘init_openssl’
所以安装:
yum install openssl-devel python-devel -y
问题解决~!
时间: 2024-11-10 08:33:54