我通过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)
我对vim
做了同样的检查,我确信我是用brew install vim --with-python
安装的,然后它没有为我安装Lua
。但是现在,Lua
也是必需的,所有选项都不见了。知道我的啤酒怎么了吗?在
您可以在这里阅读从
homebrew-core
公式中删除所有选项的决定背后的依据:Remove all options from Homebrew/homebrew-core formulae #31510。在用户现在需要在个人taps(https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap)中维护公式,所以搜索一个旧的工作公式并使用它。在
相关问题 更多 >
编程相关推荐