title: How to install Ansible to run under Python3 on Amazon Linux?
body: <p>There are directions here: <a href="https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html" rel="nofollow noreferrer">https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html</a>
  Which say: 
  The easiest way to run /usr/bin/ansible under Python 3 is to install it with the Python3 version of pip. This will make the default /usr/bin/ansible run with Python3:</p>
  
  <pre><code>$ pip3 install ansible
  </code></pre>
  
  <p>However this does not work. It will install ansible, but ansible still uses Python2:</p>
  
  <pre><code>$ ansible --version | grep "python version"
  python version = 2.7.14 (default, Jul 26 2018, 19:59:38) [GCC 7.3.1 
  20180303 (Red Hat 7.3.1-5)]
  </code></pre>
  
  <p>I installed Python3 first, then pip, then Ansible  (not sure if the order matters) </p>
  
  <p>The Ansible version is 2.7.8.
  The ami is ami-095cd038eef3e5074 (latest amazoninux base).</p>
  
  <p>Does anyone know of a way to get this working? Thanks much for any help</p>