I\'m getting an error whenever I try to start swift related to python. How do I fix this?
bash-3.2$ swift --version Apple Swift version 4.1 (sw
I get the same error, because the swift REPL uses the python interpreter which homebrew installed at /usr/local/bin/python.
/usr/local/bin/python
To avoid this you can
export PATH=/usr/bin:$PATH swift
or
PATH=/usr/bin:$PATH swift