【问题标题】:Homebrew vim and Numpy don't support options anymore?Homebrew vim 和 Numpy 不再支持选项了?
【发布时间】:2019-01-06 01:29:14
【问题描述】:

我通过brew install numpy --with-python3 安装了我的 Numpy,它运行良好。但是现在,我试图用brew upgrade numpy升级它,然后它迫使我安装python@2

当我执行brew info numpy 时,我得到python@2 现在是必需的。这有什么问题吗?为什么python@2 会成为必需选项,而现在根本没有其他选项。

> brew info numpy
numpy: stable 1.15.4 (bottled), HEAD
Package for scientific computing with Python
https://www.numpy.org/
/usr/local/Cellar/numpy/1.15.4_1 (738 files, 16.4MB) *
Built from source on 2018-12-14 at 20:22:36 with: --without-python@2
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/numpy.rb
==> Dependencies
Build: gcc ✔
Required: openblas ✔, python ✔, python@2 ✘
==> Options
--HEAD
    Install HEAD version
==> Caveats
If you use system python (that comes - depending on the OS X version -
with older versions of numpy, scipy and matplotlib), you may need to
ensure that the brewed packages come earlier in Python's sys.path with:
  mkdir -p     /Users/cheng/Library/Python/2.7/lib/python/site-packages
  echo 'import sys; sys.path.insert(1, "/usr/local/lib/python3.7/site-packages")' >> /Users/cheng/Library/Python/2.7/lib/python/site-packages/homebrew.pth
==> Analytics
install: 30,333 (30 days), 105,414 (90 days), 395,859 (365 days)
install_on_request: 5,810 (30 days), 19,970 (90 days), 74,025 (365 days)
build_error: 0 (30 days)

我对@9​​87654328@ 做了同样的检查,我很确定我安装了brew install vim --with-python,然后它没有为我安装Lua。但是现在,Lua 也是必需的,所有选项都没有了。知道我的啤酒发生了什么吗?

vim: stable 8.1.0650 (bottled), HEAD
Vi 'workalike' with many additional features
https://www.vim.org/
Conflicts with:
  ex-vi (because vim and ex-vi both install bin/ex and bin/view)
  macvim (because vim and macvim both install vi* binaries)
/usr/local/Cellar/vim/8.1.0500 (1,442 files, 23.6MB) *
  Built from source on 2018-10-29 at 21:18:34 with: --with-override-system-vi
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/vim.rb
==> Dependencies
Required: gettext ✔, lua ✘, perl ✔, python ✔, ruby ✔
==> Options
--HEAD
    Install HEAD version
==> Analytics
install: 63,426 (30 days), 178,055 (90 days), 833,882 (365 days)
install_on_request: 56,810 (30 days), 159,741 (90 days), 701,651 (365 days)
build_error: 0 (30 days)

【问题讨论】:

    标签: python numpy vim homebrew


    【解决方案1】:

    您可以在此处阅读从 homebrew-core 公式中删除所有选项的决定背后的依据:Remove all options from Homebrew/homebrew-core formulae #31510

    用户现在需要在个人水龙头 (https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap) 中维护公式,因此请搜索旧的有效公式并使用它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-04-26
      • 1970-01-01
      • 1970-01-01
      • 2018-11-24
      • 2011-04-15
      • 1970-01-01
      • 1970-01-01
      • 2017-01-24
      相关资源
      最近更新 更多