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…的命令,安装成功。
本文记录了Swift安装过程中遇到的问题及解决方法,重点介绍了如何处理“TypeError: dist must be a Distribution instance”错误,包括调整Python版本、使用pip更新d2to1python包以及安装libffi-dev库。

被折叠的 条评论
为什么被折叠?



