1、 install python2
dnf install python2
2、 Configure environment variables
vim /etc/profile
# To configure python Environmental Science
PYTHON_HOME=/usr/bin/python2
PATH=$PYTHON_HOME/bin:$PATH
export PYTHON_HOME PATH
source /etc/profile
python2 -V
pip2 -V
# add to python2 The soft links
ln -s /usr/bin/python2 /usr/bin/python
# add to pip2 The soft links
ln -s /usr/bin/pip2 /usr/bin/pip