1.安装Python 3
dnf install python3
2.要验证安装,请输入以下命令检查Python版本:
python3 --version
3.建立软连接:
ln -s /usr/bin/python3.6 /usr/bin/python
4.安装epel:
dnf install python3-devel -y
5.启用epel :
dnf install -y yum-utils && yum-config-manager --enable epel
6.安装development工具包
dnf groupinstall 'development tools' -y
7.查看pip版本
pip3 --version
8.安装requests库
pip3 install requests
标签:epel,dnf,Python,server,zabbix,install,安装,python3 From: https://www.cnblogs.com/JasonBook/p/17823750.html