From 4eac0a5d98587c567b20531a154c7918be176bf9 Mon Sep 17 00:00:00 2001 From: Ulises Gascon Date: Mon, 18 Sep 2023 10:12:36 +0200 Subject: [PATCH] docs: improve documentation regarding python3 in macOS --- ansible/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ansible/README.md b/ansible/README.md index a5daf8588..c2b98eab3 100644 --- a/ansible/README.md +++ b/ansible/README.md @@ -7,9 +7,10 @@ 1. Follow the [instructions to install the latest version of Ansible][ansible-install]. * In most cases, using pip: `pip install ansible`. - * If you use brew, then `brew install python2 ansible`, and then run - `export PYTHONPATH=$(pip2 show pyyaml | grep Location | awk '{print $2}') ` + * If you use brew, then `brew install python3 ansible`, and then run + `export PYTHONPATH=$(pip show pyyaml | grep Location | awk '{print $2}') ` before you use `ansible-playbook`. + * If you have Python 2 installed, you may need to add an alias to your shell profile for python 3 as the default python interpreter, like `alias python=/usr/local/bin/python3.11` 2. Read this document. 3. For SSH access, see the [SSH guide](../doc/ssh.md).