Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named google.probuf #108

Open
joeyaa opened this issue Aug 16, 2017 · 1 comment
Open

No module named google.probuf #108

joeyaa opened this issue Aug 16, 2017 · 1 comment

Comments

@joeyaa
Copy link

joeyaa commented Aug 16, 2017

hello,
when i run python setup_examples.py reports the error like this:

lyy@lyy-X550JX:~/bxy/deepnet-master/deepnet/examples$ python setup_examples.py /home/lyy/bxy/mnist /home/lyy/bxy/result
Traceback (most recent call last):
File "setup_examples.py", line 2, in
from deepnet import util
File "/home/lyy/bxy/deepnet-master/deepnet/util.py", line 4, in
import deepnet_pb2
File "/home/lyy/bxy/deepnet-master/deepnet/deepnet_pb2.py", line 3, in
from google.protobuf import descriptor
ImportError: No module named google.protobuf
what is the problem?

@joeyaa
Copy link
Author

joeyaa commented Aug 16, 2017

执行conda install -c conda-forge protobuf=3.2.0
选择yes
居然成功了,原来可能还是依赖哪里没有弄好。
也问了一个博主
他说 sudo apt-get install python-protobuf
这种方案我没有试过,不过应该也可以。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant