While building my work product on the fancy-schmancy M1 work Mac, I kept running into clang errors, when I did a pip install
Turns out, PyCLD3 would not build.
So I did it manually. This tip on Github did the trick
We need brew installed.
And then we run the following commands in a terminal …
brew install protobuf #install protobuf
# set various compiler flags
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
export CFLAGS='-I /opt/homebrew/opt/protobuf/include'
export LDFLAGS=-L/opt/homebrew/opt/protobuf/lib
# install pycld3
python3 -m pip install pycld3And we’re set!
P.S. Subscribe to my mailing list!
Forward these posts and letters to your friends and get them to subscribe!
P.P.S. Feed my insatiable reading habit.