gpt4 book ai didi

macos - 无法执行 k8s 模块

转载 作者:行者123 更新时间:2023-12-02 11:43:04 26 4
gpt4 key购买 nike

我的代码在 tasks/main.yml .

- name: Check Istio services
k8s_info:
api_version: v1
kind: Service
namespace: istio-system

但它回来了;
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named kubernetes
fatal: [localhost]: FAILED! => {"changed": false, "error": "No module named kubernetes",

"msg": "Failed to import the required Python library (openshift) on Gihu's-MacBook-Pro.local's Python /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python.

为什么会出现这个问题?

最佳答案

执行命令;
sudo pip install --upgrade --user openshift

关于macos - 无法执行 k8s 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59304938/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com