mg4377娱乐娱城官网_mg4377娱乐手机版_www.mg4377.com

error :No module named google.protobuf.internal

时间:2019-06-03 13:02来源:mg4377娱乐娱城官网
环境 :Ubuntu 14.04 mg4377娱乐娱城官网,Python Caffe报错:No module named google.protobuf.internal 进级tensorflow后,出现报错消息: ImportError: No module named protobuf 。 error :No module named google.protobuf.i

环境 :Ubuntu 14.04

mg4377娱乐娱城官网,Python Caffe报错:No module named google.protobuf.internal

进级tensorflow后,出现报错消息:ImportError: No module named protobuf

error :No module named google.protobuf.internal。Python 3: No module named sha256 error
也算病急乱投医了,我试了很两种措施,最终化解了,在此地复述下进程,希望能有所帮衬。至于原因,我呵呵了知,烦高手指正。
下载了openssl098e-0.9.8e-17.el6.centos.2.i686.rpm
postgres-9.0.4-1.i386.openscg.rpm
用下列指令将双方安装

jupyter notebook 调用caffe 的时候出现这几个破绽百出。error :No module named google.protobuf.internal

作者装的是Anaconda二, 消除方式是在当中设置protobuf最新版本

>>> from tensorflow.examples.tutorials.mnist import input_data
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/Chris/HappyCoding/tensorflow/lib/python2.7/site-packages/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import *
  File "/Users/Chris/HappyCoding/tensorflow/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 52, in <module>
    from tensorflow.core.framework.graph_pb2 import *
  File "/Users/Chris/HappyCoding/tensorflow/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
ImportError: No module named protobuf

sudo apt-get install alien
sudo alien -i openssl098e-0.9.8e-17.el6.centos.2.i686.rpm
sudo alien -i postgres-9.0.4-1.i386.openscg.rpm
sudo python3 setup.py install
easy_install --help "要是有响应,那么安装成功了。

mg4377娱乐娱城官网 1

sudo chmod 777 -R anaconda2

有的时候解决办法:卸载 tensorflow,重新安装

化解办法是:

conda install protobuf

pip uninstall tensorflow
pip uninstall protobuf
pip uninstall google
pip install ~/Downloads/tensorflow-1.4.0-py2-none-any.whl 

sudo chmod 777 -卡宴  anaconda(文件夹) 退换权限 然后

mg4377娱乐娱城官网 2

编辑:mg4377娱乐娱城官网 本文来源:error :No module named google.protobuf.internal

关键词: 深度学习 技术