在python mac上安装protobuf时遇到问题

时间:2014-06-25 20:28:24

标签: python macos protocol-buffers

运行easy_install protobuf后我得到了这个:

Using /Library/Python/2.7/site-packages/protobuf-2.5.0-py2.7.egg
Processing dependencies for protobuf
Finished processing dependencies for protobuf

其中(我猜)意味着它认为没关系但是当我尝试导入google.protobuf时出现错误。

Eyals-MacBook-Pro:python2.7 eredler$ python
Python 2.7.5 (default, Mar  9 2014, 22:15:05) 
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import google.protobuf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named google.protobuf

对此我感谢任何帮助。 感谢

0 个答案:

没有答案
相关问题