在ansible 2.9中找不到openstacksdk

2024-10-01 13:44:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我的环境:

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
出现以下错误:
enter image description here

现在我没有线索来解决这个问题。你知道吗


Tags: pipmoduleshome环境versionlibpackagesusr