本文介绍了没有名为google.protobuf的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力实现Google的梦想.由于某些奇怪的原因,我不断得到

I am trying to run Google's deep dream. For some odd reason I keep getting

在尝试导入protobuf之后.我已经使用sudo install protobuf安装了protobuf.我正在运行python 2.7 OSX Yosemite 10.10.3.

after trying to import protobuf. I have installed protobuf using sudo install protobuf. I am running python 2.7 OSX Yosemite 10.10.3.

我认为这可能是部署位置问题,但我在网上找不到任何有关它的信息.当前正在部署到/usr/local/lib/python2.7/site-packages.

I think it may be a deployment location issue but i cant find anything on the web about it. Currently deploying to /usr/local/lib/python2.7/site-packages.

推荐答案

如果您正在运行python 2.7.11或其他类似版本,则还有另一种可能性,

There is another possibility, if you are running a python 2.7.11 or other similar versions,

sudo pip install protobuf

还可以.

但是如果您在anaconda环境中,则应该使用

But if you are in a anaconda environment, you should use

conda install protobuf

这篇关于没有名为google.protobuf的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 16:21