2017-06-29 31 views
0

嘗試install NEURON with Python support (eg. can run python -c "import neuron"), using instructions from the Human Brain Project portal website時。後:MAC NEURON-Python:錯誤可以使用更新的命令行工具版本。在App Store中的軟件更新中更新它們

brew install neuron

我得到以下(誤導)錯誤:

Error: A newer Command Line Tools release is available. Update them from Software Update in the App Store.

然而,App Store中並沒有列出 「命令行工具」。我如何更新「命令行工具」?

這使我陷入了谷歌搜索的漏洞。我在下面發表我的發現,以幫助其他人在我的情況下節省一些時間。

回答

0

正如消息所示,不要去App Store,而是從終端更新命令工具。

  1. 列出所有包在終端softwareupdate --list。可能需要一分鐘。
  2. 複製的命令行工具包的名字後*(例如我的是* Command Line Tools (macOS Sierra version 10.12) for Xcode-8.3

  3. 與例如安裝最新的包sudo softwareupdate --install "Command Line Tools (macOS Sierra version 10.12) for Xcode-8.3"(注意引號)。可能還需要一段時間,但您應該在下載過程中看到Activity Monitor中的網絡活動。

恕我直言,easiest way to install NEURON+Python on MacOS has been this tutorial by M. Hines。 HBP門戶網站上的說明導致了上述錯誤,稍後還有其他一些錯誤。即使這個教程需要命令行工具,所以上面的答案仍然有幫助。