为什么我在mac终端上尝试使用$swift运行swift语言时出错

为什么我在mac终端上尝试使用$swift运行swift语言时出错,swift,Swift,我尝试在mac终端中使用以下简单命令运行swift: $ swift 但我每次都会犯很多错误 ImportError: No module named six Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'run_one_line' is not defined Traceback (most recent call last): I

我尝试在mac终端中使用以下简单命令运行swift:

$ swift
但我每次都会犯很多错误

ImportError: No module named six
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
ImportError:没有名为six的模块
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
名称错误:未定义名称“运行一行”
回溯(最近一次呼叫最后一次):
持续了大约一千行


我是否需要安装软件包或其他东西

您是否使用Brew在macOS上安装Python版本

我修复了它,卸载了从Brew安装的python版本

brew uninstall --force python

那正适合我

我想你已经安装了Xcode?