<p style="text-align: center;"><img src="/upload/content/20190123/1548176545286766.jpg" alt="xcode-select --install不能下载该软件的解决办法" title="xcode-select --install不能下载该软件的解决办法" width="550px"/></p><p>相信很多人在使用Mac的时候也跟我一样碰到过跟我一样的问题“xcode-select --install不能下载该软件,因为目前不可在软件服务器上使用它……”,这是由于xcode的命令行工具无法安装不能安装该软件 因为当前无法从软件更新服务器获得的错误。</p><p>具体报错内容如下:</p><pre class="brush:xml;toolbar:false;">Error: The following formula:git cannot be installed as a binary package and must be built from source. Install the Command Line Tools:xcode-select --install Error: Git must be installed and in your PATH! xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Error: The following formula:python cannot be installed as a binary package and must be built from source. Install the Command Line Tools:xcode-select --install</pre><p>碰到问题提了当然是要想办法解决了,这时候我在网上找了很多教程有些说是路径的问题,而我试了很多都没有找到一个好的解决办法,最终在国外的一个网站下面的评论上找到了解决办法。</p><p><strong>解决办法如下:</strong></p><p>1、打开Apple的开发者下载:https://developer.apple.com/download/more/;</p><p>2、中间需要登录下,登录完成后在左边的搜索框中搜索Command Line Tools然后搜索;</p><p style="text-align: center;"><img src="/upload/content/20190123/1548175905809690.png" alt="xcode-select --install不能下载该软件的解决办法" title="xcode-select --install不能下载该软件的解决办法" width="550px"/></p><p>3、将适合你Mac电脑版本的那个下载下来安装好即可;</p><p>4、然后再去安装homebrew即可顺利安装。</p><p>好了,以上就是关于“xcode-select --install不能下载该软件的解决办法”的全部内容了,小伙伴们如果有更好的建议,欢迎到文章下面的评论区留言告诉我们。</p>