python - 在 ansible 2.9 中找不到 openstacksdk
问题描述
我的环境:
python --version
Python 3.5.2
pip --version
pip 19.3.1 from /home/chinmaya/.local/lib/python3.5/site-packages/pip (python 3.5)
ansible --version
ansible 2.9.2
config file = None
configured module search path = ['/home/chinmaya/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.5.2 (default, Oct 8 2019, 13:06:37) [GCC 5.4.0 20160609]
使用以下代码安装和升级 openstacksdk
pip install --user --upgrade openstacksdk
这安装了以下软件包
Successfully installed certifi-2019.11.28 chardet-3.0.4 decorator-4.4.1 dogpile.cache-0.9.0 idna-2.8 jmespath-0.9.4 jsonpatch-1.24 keystoneauth1-3.18.0 munch-2.5.0 openstacksdk-0.39.0 os-service-types-1.7.0 pbr-5.4.4 requests-2.22.0 requestsexceptions-1.4.0 stevedore-1.31.0 urllib3-1.25.7
现在执行了一个剧本ansible-playbook installNifiCentos.yml
这给出了以下错误:
现在我没有解决这个问题的线索。
解决方案
我遇到了所有这些冲突,可能是由于两个 python 版本。我决定删除 python 2.7,只保留一个 Python 3.5.2。删除 Python 2.7 后,这开始工作了。不过,我不知道问题出在哪里。
推荐阅读
- php - 自定义 ocmod 修改在 opencart 版本 3.0.2.0 中不起作用
- java - Apache Nifi 属性描述符的动态修改类路径()的 Hello World 程序不起作用
- java - 如何在 SpringBoot WebFlux 中使用 GET 请求注销
- csv - 处理大型 csv 文件并限制 goroutines
- vb.net - 在固定大小的平台上测量盒子或物体的大小
- python - 用于从 nd 数组中切片特定单元格的 numpy 快速操作
- c - 回顾这个链表程序
- python - 安装z3后路径问题而不是root
- php - 在验证之前编辑请求数据
- azure - 拉取后 ACI 缓存 docker 图像