2017-01-01 53 views
0

我想在Mac端用这个简单的命令来运行快捷的运行迅速语言时,为什么我得到一个错误:

$ 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): 

持续了大约千行......

,我需要安装一个软件包或东西

+2

我假设你已经安装了Xcode? – sbooth

回答

0

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

我修复它从Brew安装卸载python版本。

brew uninstall --force python 

适合我!