Anyone can suggest me how to install protobuf in raspberrypi 3 b+.
if I directly install using the command pip install protobuf it is install but I am not able to import ?
I suggest to install protobuf in raspberrypi 3 b+ from the default repository. With:
rpi ~$ apt list *protobuf*
you will find some packages supporting protocol buffers. Just install what you want, for example:
rpi ~$ sudo apt install python3-protobuf
You will also find the protobuf compiler if you need it. Installing from the repository has the big advantage that it fits best into the Raspbian operating system and will mostly run out of the box and will take updates automatically. Maybe you have only to do some configurations before running it.