1.操作系统版本
cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
2.问题现象
安装 fabric 报错
/usr/local/python3.5/bin/pip3 install fabric3
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Collecting fabric3
Using cached Fabric3-1.14.post1-py3-none-any.whl (92 kB)
Requirement already satisfied: six>=1.10.0 in /usr/local/python3.5/lib/python3.5/site-packages (from fabric3) (1.16.0)
Collecting paramiko<3.0,>=2.0
Using cached paramiko-2.12.0-py2.py3-none-any.whl (213 kB)
Collecting cryptography>=2.5
Using cached cryptography-3.2.1-cp35-abi3-manylinux2010_x86_64.whl (2.6 MB)
Collecting pynacl>=1.0.1
Using cached PyNaCl-1.4.0-cp35-abi3-manylinux1_x86_64.whl (961 kB)
Collecting bcrypt>=3.1.3
Using cached bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56 kB)
Collecting cffi>=1.1
Using cached cffi-1.15.1.tar.gz (508 kB)
Requirement already satisfied: pycparser in /usr/local/python3.5/lib/python3.5/site-packages (from cffi>=1.1->bcrypt>=3.1.3->paramiko<3.0,>=2.0->fabric3) (2.21)
Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
Installing collected packages: cffi, pynacl, cryptography, bcrypt, paramiko, fabric3
Running setup.py install for cffi ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/python3.5/bin/python3.5 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ag15n1af/cffi_cd2027f1