sudo apt-get install protobuf-compiler libprotoc-dev
before
pip install onnx=1.4.1
as per When installing in a non-Anaconda environment, make sure to install the Protobuf compiler before running the pip installation of onnx. For example, on Ubuntu https://github.com/onnx/onnx