最新消息:20210917 已从crifan.com换到crifan.org

【已解决】Mac中brew install graphviz期间出错:Error python@3.9 the bottle needs the Apple Command Line Tools to be installed

Mac crifan 4015浏览 0评论
折腾:
【未解决】Mac中brew install graphviz报错Error Not a directory dir_s_rmdir  /usr/local/Cellar/python3
期间,对于:
brew install graphviz
期间,报错:
不过关于Python 3.9,有点问题:
Error: python@3.9: the bottle needs the Apple Command Line Tools to be installed.
  You can install them, if desired, with:
    xcode-select --install


You can try to install from source with:
  brew install --build-from-source python@3.9
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
去折腾这部分。
 ✘ crifan@licrifandeMacBook-Pro  ~  xcode-select --install
xcode-select: note: install requested for command line developer tools
或许就可以了。
再去重新安装试试
brew install graphviz
期间有Python 3.9的重新安装:
~  brew install graphviz
Updating Homebrew...
==> Downloading https://ghcr.io/v2/homebrew/core/libtiff/manifests/4.3.0
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/c24b87e3eea7ffd536298b1b0782aa3506514ec9547e00fd90cde106f050376a--libtiff-4.3.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libtiff/blobs/sha256:09f08e1168780c12c8f1526038eb4f4692624c85a9e78099b8ae2c58e39f5289
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/54a8d701eebf8cb3e7c581e9ad168ed4cc077ec43419b50a2052be92eb13bb27--libtiff--4.3.0.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.35.5
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/378ec4b4eabacb2e78491282aed532b43a440467b1b9de74c128b026d3c912ba--sqlite-3.35.5.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:801e11dff40b2e7067b8e124d266f82050cbae434447d7fa1ad36888fd8ceec2
Already downloaded: /Users/crifan/Library/Caches/Homebrew/downloads/1a664fe49a26a15104a30b571869e6eb8d8f841848f89795ffa95939f82c3055--sqlite--3.35.5.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/manifests/3.9.5
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:316baac980aa0a3dac263d64de41c4f09b06945a3da1556549a68949a93e4484
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:316baac980aa0a3dac263d64de41c4f09b06945a3da1556549a68949a93e4484?
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/glib/manifests/2.68.3
。。。
应该是没问题了。
==> Downloading https://ghcr.io/v2/homebrew/core/librsvg/blobs/sha256:7849cab410dfd63c3f8f635e0a0152cf34425524f728c2f01a36d7631f34688b
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:7849cab410dfd63c3f8f635e0a0152cf34425524f728c2f01a36d7631f34688b?
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/graphviz/manifests/2.47.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/graphviz/blobs/sha256:c3b4be8016797f935d210e12b365313d7770643e464563f05377a3209132ec13
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:c3b4be8016797f935d210e12b365313d7770643e464563f05377a3209132ec13?
######################################################################## 100.0%
Error: graphviz 2.47.0 is already installed
To upgrade to 2.47.2, run:
  brew upgrade graphviz
貌似没问题了。
【总结】
此处Mac中:
brew install graphviz
期间报错:
Error: python@3.9: the bottle needs the Apple Command Line Tools to be installed.
  You can install them, if desired, with:
    xcode-select --install


  brew install --build-from-source python@3.9
解决办法:
xcode-select --install
根据提示,等待一段时间,即可安装完毕。
即可解决问题。

转载请注明:在路上 » 【已解决】Mac中brew install graphviz期间出错:Error python@3.9 the bottle needs the Apple Command Line Tools to be installed

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (1)

  1. 安装了 Xcode,并执行了 `sudo xcode-select -s /Applications/Xcode.app` 为什么非得另外再安装 command line tools 呢,我不理解
    list2年前 (2022-02-25)回复
101 queries in 0.195 seconds, using 23.46MB memory