【问题标题】:Error installing Python 3 with Homebrew使用 Homebrew 安装 Python 3 时出错
【发布时间】:2016-12-27 00:41:50
【问题描述】:

当我想使用 Homebrew 安装 Python 3 时遇到问题。

这是我的控制台:

$ brew install python3
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for python3: readline, sqlite, gdbm, makedepend, openssl
==> Installing python3 dependency: readline
==> Downloading https://ftpmirror.gnu.org/readline/readline-6.3.tar.gz
Already downloaded: /Users/slorenzo/Library/Caches/Homebrew/readline-6.3.8.tar.gz
==> Downloading https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2af/raw/746fc543e56bc37

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "readline--patch"
Download failed: https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2af/raw/746fc543e56bc37a26ccf05d2946a45176b0894e/readline-6.3.8.diff

有谁知道我该如何解决这个问题?

谢谢。

【问题讨论】:

    标签: python homebrew macos-sierra


    【解决方案1】:

    尝试运行:

    如果 Homebrew 在 2016 年 8 月 10 日至 11 日更新并且brew update 总是说Already up-to-date 你需要运行:

    cd "$(brew --repo)" && git fetch && git reset --hard origin/master && brew update
    

    【讨论】:

      【解决方案2】:

      您使用的是旧版本的 Homebrew。 The patch file that's failing to download was removed from the recipe in September 2016,关于 macOS 10.12 是“预发布版本”的警告显然不再正确。

      运行brew update,然后重试。

      【讨论】:

      • 感谢您的建议。我试过了,但控制台说:Already up-to-date.
      猜你喜欢
      • 1970-01-01
      • 2013-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-09
      • 2017-08-24
      • 2021-07-15
      • 2021-07-17
      相关资源
      最近更新 更多