Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install caffe on mac " Error: invalid option: --with-python"

when I install the caffe on mac according to :

Remaining dependencies, with / without 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

I paste the second one to the terminal, and result is:

Error: invalid option: --with-python

I can not find any similar problem, can some help me with that?

like image 551
pf wang Avatar asked Feb 04 '19 03:02

pf wang


1 Answers

Options have been removed from Homebrew core formulas and only exist in taps now. See this GitHub issue. Building with python has been made the default behavior for protobuf.

See the formula, lines 49-51.

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

So it should be fine to run

brew install --build-from-source -vd protobuf
like image 176
Jason Chen Avatar answered Oct 30 '22 02:10

Jason Chen