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

pf *_*ang 9 python caffe protobuf-c

当我根据以下内容在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
Run Code Online (Sandbox Code Playgroud)

我将第二个粘贴到终端,结果是:

Error: invalid option: --with-python
Run Code Online (Sandbox Code Playgroud)

我找不到任何类似的问题,有什么可以帮助我的吗?

小智 4

选项已从 Homebrew 核心公式中删除,现在仅存在于水龙头中。请参阅此GitHub 问题。使用 python 构建已成为protobuf.

请参见公式第 49-51 行。

chdir "python" do
  system "python3", *Language::Python.setup_install_args(libexec),
                    "--cpp_implementation"
Run Code Online (Sandbox Code Playgroud)

所以运行应该没问题

brew install --build-from-source -vd protobuf
Run Code Online (Sandbox Code Playgroud)