Error when using pipeline library on offline mode


I just started using the pipeline library to do zero shot classification. I’m trying to implement it inside an offline environment (with firewall), but when I try to run the pipeline library it gave me an error with message like this

RuntimeError: Failed to import transformers.pipelines because of following error: No module named ‘google’

That error points out to more direct error with message like this

No module named ‘google’ on “from google.protobuf import descriptor as _descriptor”

Does this means that I need to install the protobuf? And is it safe to install it inside a firewalled environment?

Appreciate any help regarding this, thanks!