Skip to content

Commit d00b77c

Browse files
authored
docs: improve documentation regarding python3 in macOS (#3487)
1 parent 2e7c763 commit d00b77c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ansible/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77

88
1. Follow the [instructions to install the latest version of Ansible][ansible-install].
99
* In most cases, using pip: `pip install ansible`.
10-
* If you use brew, then `brew install python2 ansible`, and then run
11-
`export PYTHONPATH=$(pip2 show pyyaml | grep Location | awk '{print $2}') `
10+
* If you use brew, then `brew install python3 ansible`, and then run
11+
`export PYTHONPATH=$(pip show pyyaml | grep Location | awk '{print $2}') `
1212
before you use `ansible-playbook`.
13+
* 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`
1314
2. Read this document.
1415
3. For SSH access, see the [SSH guide](../doc/ssh.md).
1516

0 commit comments

Comments
 (0)