脚本宝典收集整理的这篇文章主要介绍了

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,然后执行如下操作,就可以了。

clipboard.png

clipboard.png

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群277859234一起讨论学习。如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典网站推荐给程序员好友。 本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。

80%的人都看过