swift安装的说明文档可以直接参考官方的SAIO-Swift all in one,直接按照步骤来。我出现问题的第一个地方是Getting the code,执行指令
sudo python setup.py develop
时,总是报出“TypeError: dist must be a Distribution instance”的错误。
重装系统之后,将python版本设置为了python2.7.3,重新到了上面的错误“TypeError”。如果上面失败,可以尝试命令
sudo pip install -U d2to1 python
执行命令后,出现了问题后再执行:
sudo apt-get install libffi-dev
然后再执行上述sudo pip…的命令,安装成功。
sudo python setup.py develop
时,总是报出“TypeError: dist must be a Distribution instance”的错误。
重装系统之后,将python版本设置为了python2.7.3,重新到了上面的错误“TypeError”。如果上面失败,可以尝试命令
sudo pip install -U d2to1 python
执行命令后,出现了问题后再执行:
sudo apt-get install libffi-dev
然后再执行上述sudo pip…的命令,安装成功。