mac下homebrew一些总结

发布时间:2019-06-28 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了mac下homebrew一些总结脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

最近使用brew来安装python,但是安装过程中报下面的错:

☁  ~  brew search python
==> Searching local taps...
app-engine-python     gst-python            micropython           python3
boost-python          ipython               python                wxpython
boost-python@1.59     ipython@5             python-markdown       zpython
==> Searching taps on GitHub...
Error: GitHub
The GitHub credentials in the macOS keychain may be invalid.
Clear them with:
  printf "protocol=httpsnhost=github.comn" | git credential-osxkeychain erase
Or create a personal access token:
  https://github.com/settings/tokens/new?scopes=gist,public_repo&description=Homebrew
and then set the token as: export HOMEBREW_GITHUB_API_TOKEN="your_new_token"

上面提示很清楚,就是要你在github上面设置一下github信任的token提供给brew,这样brew就凭token访问github。

现在只要按照上面的链接点进去,创建一个token,然后执行如下操作,就可以了。

mac下homebrew一些总结

mac下homebrew一些总结

export HOMEBREW_GITHUB_API_TOKEN="your_new_token"

现在我们再执行 brew search python 之后就不会有问题了,记录下!

☁  ~  brew search python
==> Searching local taps...
app-engine-python     gst-python            micropython           python3
boost-python          ipython               python                wxpython
boost-python@1.59     ipython@5             python-markdown       zpython
==> Searching taps on GitHub...
caskroom/cask/awips-python                   caskroom/cask/mySQL-connector-python
caskroom/cask/kk7ds-python-runtime
==> Searching blacklisted, migrated and deleted formulae...

If you meant "python" specifically:
It was migrated from caskroom/cask to homebrew/core.

脚本宝典总结

以上是脚本宝典为你收集整理的mac下homebrew一些总结全部内容,希望文章能够帮你解决mac下homebrew一些总结所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。