swift throws python errors from terminal

后端 未结 1 581
有刺的猬
有刺的猬 2021-01-12 17:00

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

相关标签:
1条回答
  • 2021-01-12 17:30

    I get the same error, because the swift REPL uses the python interpreter which homebrew installed at /usr/local/bin/python.

    To avoid this you can

    export PATH=/usr/bin:$PATH
    swift
    

    or

    PATH=/usr/bin:$PATH swift
    
    0 讨论(0)
提交回复
热议问题