根据Python-API的要求,我已经配置并安装了 Protocol Buffer (如http://worthynote.blogspot.com/2011/05/protobuf-compiler-on-mac.html中所述)和python 2.7。当我运行命令
python examples.py
仍然面临错误:
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
知道这里出了什么问题吗?
最佳答案
使用pip:
sudo pip install protobuf
我遇到了同样的问题,这就是我如何找到您的问题,并解决了该问题。
关于python - Android Market API-Python ImportError : No module named google. protobuf,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/18969358/