No module named google.protobuf

后端 未结 9 677
滥情空心
滥情空心 2020-12-09 08:17

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

ImportError: No module named google.protobuf

after t

9条回答
  •  执笔经年
    2020-12-09 09:02

    I got the same error message when I tried to use Tensor Flow. The solution was simply to uninstall Tensor Flow and protobuf:

    $ sudo pip uninstall protobuf
    $ sudo pip uninstall tensorflow
    

    And reinstall it again: pip installation of Tensorflow. Currently, this is:

    # Ubuntu/Linux 64-bit, CPU only:
    $ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0rc0-cp27-none-linux_x86_64.whl
    
    # Ubuntu/Linux 64-bit, GPU enabled:
    $ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0rc0-cp27-none-linux_x86_64.whl
    
    # Mac OS X, CPU only:
    $ sudo easy_install --upgrade six
    $ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.8.0rc0-py2-none-any.whl
    

提交回复
热议问题