安装DIGITS时出现的问题

使用 https://github.com/NVIDIA/DIGITS/blob/digits-5.0/docs/BuildDigits.md 指南安装DIGITS时,

运行 ./digits-devserver 出现下面的错误

File "/home/app/caffe-master/python/caffe/proto/caffe_pb2.py", line 831, in <module>
    options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\020\001')), file=DESCRIPTOR),
TypeError: __new__() got an unexpected keyword argument 'file'

    options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\020\001')), file=DESCRIPTOR),

TypeError: __new__() got an unexpected keyword argument 'file'

在python下 import caffe 和 tensorflow时出现与上述类似的错误。

后来发现 DIGITS下的安装说明文件 requirements.txt中有指定 protobuf版本为:protobuf>=2.5.0,<=3.2.0

原系统中anaconda 下的 protobuf版本为 3.5.2

运行完 pip install -r requirements.txt 之后,protonbuf版本将为 3.2.0,导致 pycaffe、tensorflow以及digits均无法使用。

解决方法:pip uninstall protobuf 

pip install protobuf==3.5.2  还原protobuf版本

问题解决。

pycaffe、tensorflow恢复正常,digits启动成功。

提示:NVIDIA/DIGITS官方说明下的 requirements.txt 中指定的 protonbuf版本与本机的 caffe、tensorflow 不兼容,官方指南的版本太低。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值