在Mac上安装caffe时出现“错误:无效选项:--with-python”。

14

按照以下步骤在 Mac 上安装 Caffe:

安装剩余依赖项,包括/不包括 Python。

# with Python pycaffe needs dependencies built from source

brew install --build-from-source --with-python -vd protobuf
brew install --build-from-source -vd boost boost-python
# without Python the usual installation suffices
brew install protobuf boost
我将第二个粘贴到终端,结果是:
Error: invalid option: --with-python

我找不到类似的问题,有人可以帮助我吗?


"Homebrew/homebrew-core 的配方不再具有安装选项。" https://github.com/Homebrew/brew/issues/5732 - anon poster
1个回答

4

Homebrew核心公式中的选项已被删除,现在只存在于tap中。请参见GitHub问题。使用python构建已成为protobuf的默认行为。

请参见公式,第49-51行。

chdir "python" do
  system "python3", *Language::Python.setup_install_args(libexec),
                    "--cpp_implementation"

因此运行应该没有问题。

brew install --build-from-source -vd protobuf

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接