I am using CentOS 6.4 with Python 2.6.6 to run Ansible 2.3.0. But when I go into my python virtual env which has python 3.4.1 and run "ansible --version" I get the following error:
Traceback (most recent call last):
File "/home/namaaror/Desktop/githubansible/bin/ansible", line 80, in <module>
from ansible.cli.adhoc import AdHocCLI as mycli
File "/home/namanarora/Desktop/github/ansible/lib/cli/__init__.py", line 28, in <module>
import yaml
ImportError: No module named 'yaml'
I have even tried installing pyyaml by reffering ImportError: No Module named yaml | Ansible but the error still persists. Is it somewhat related to yaml installation directory and sys.path?