nitishsrivastava / deepnet

Implementation of some deep learning algorithms.
BSD 3-Clause "New" or "Revised" License
895 stars 438 forks source link

No module named google.probuf #108

Open joeyaa opened 7 years ago

joeyaa commented 7 years ago

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 commented 7 years ago

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