2017-01-01 52 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 

適合我!