<p>My code in <code>tasks/main.yml</code>. </p>

<pre><code>- name: Check Istio services
  k8s_info:
    api_version: v1
    kind: Service
    namespace: istio-system
</code></pre>

<p>But it returns;</p>

<pre><code>An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named kubernetes
fatal: [localhost]: FAILED! =&gt; {"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.
</code></pre>

<p>Why does this issue happen?</p>

<p>Execute command;</p>

<p><code>sudo pip install --upgrade --user openshift</code></p>
