无法在https://colab.research.google.com中安装protobuf

时间:2018-01-08 12:13:15

标签: google-colaboratory

我正在尝试在https://colab.research.google.com中安装Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libjbig0 libjpeg-turbo8 libjpeg8 liblcms2-2 libprotobuf10 libprotoc10 libtiff5 libwebp6 libwebpmux3 libxslt1.1 python-bs4 python-chardet python-html5lib python-olefile python-six python-webencodings Suggested packages: liblcms2-utils python-genshi python-lxml-dbg python-lxml-doc python-pil-doc python-pil-dbg The following NEW packages will be installed: libjbig0 libjpeg-turbo8 libjpeg8 liblcms2-2 libprotobuf10 libprotoc10 libtiff5 libwebp6 libwebpmux3 libxslt1.1 protobuf-compiler python-bs4 python-chardet python-html5lib python-lxml python-olefile python-pil python-six python-webencodings 0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded. Need to get 3,734 kB of archives. After this operation, 14.6 MB of additional disk space will be used. Do you want to continue? [Y/n]

Y

但我无法继续说graph.getSuccessors(element [, opt])

1 个答案:

答案 0 :(得分:3)

更新: Colab现在支持输入提示,因此您应该看到确认,并可以根据需要回答。

enter image description here

旧回答:尝试使用apt-get参数调用-y,该参数将接受所有确认提示。

例如:

apt-get -y install protobuf-compiler python-pil python-lxml

笔记本示例: https://colab.research.google.com/notebook#fileId=1I6F8Oum_l7QAfUhH6Aj3zUYtnO3rly14