0

我正在尝试安装apt-get install protobuf-compiler python-pil python-lxmlhttps://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

4

1 回答 1

4

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

在此处输入图像描述

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

例如:

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

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

于 2018-01-08T16:37:06.297 回答