
1. 卸载现有的 Ansible 版本:
由于你安装的 Ansible 是基于 Python 3.7 的,首先卸载当前版本
pip uninstall ansible

2. 使用 Python 3.8 重新安装 Ansible:
使用 Python 3.8 安装 Ansible。可以使用 pip 命令指定 Python 3.8 的 pip 来重新安装 Ansible:
python3.8 -m pip install ansible
这将确保 Ansible 使用 Python 3.8 环境。

/home/ansible_env/bin/python3.8 -m pip install --upgrade pip
