Based on Python-API the requirements I have configured and installed the protocol buffers (as mentioned in http://worthynote.blogspot.com/2011/05/protobuf-compiler-on-mac.html ) and python 2.7. When I ran the command
python examples.py
and still faced the error:
File "examples.py", line 3, in <module>
import market_proto
File "/Users/siddharthan64/Downloads/android-market-api-py-master/market_proto.py", line 3, in <module>
from google.protobuf import descriptor
ImportError: No module named google.protobuf
Any idea whats going wrong here?
Use pip:
sudo pip install protobuf
I had the same problem, which is how I found your question, and this fixed it.
Use conda, if you use anaconda and juypter
conda install -c conda-forge protobuf=3.2.0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With