完整报错信息

Error: python@3.11: the bottle needs the Apple Command Line Tools to be installed.
  You can install them, if desired, with:
    xcode-select --install

If you're feeling brave, you can try to install from source with:
  brew install --build-from-source python@3.11

It is expected behaviour that most formulae will fail to build from source.
It is expected behaviour that Homebrew will be buggy and slow when building from source.
Do not create any issues about failures building from source on Homebrew's GitHub repositories.
Do not create any issues building from source even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help building from source from MacHomebrew on Twitter.
You may ask for help building from source in Homebrew's discussions but are unlikely to receive a response.
If building from source fails, try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

解决方法

xcode-select --install

如果下载速度慢,尝试手动下载最新的Apple Command Line Tools试试

Apple 开发者下载页面:https://developer.apple.com/download/all/?q=command

参考:https://stackoverflow.com/questions/69312074/python3-9-the-bottle-needs-the-apple-command-line-tools-to-be-installed

截图



最后修改:2023 年 01 月 25 日
如果觉得我的文章对你有用,奖励一杯咖啡吧!