【问题标题】:Unable to install protobuf in https://colab.research.google.com无法在 https://colab.research.google.com 中安装 protobuf
【发布时间】:2018-06-17 10:03:26
【问题描述】:

我正在尝试在https://colab.research.google.com 中安装apt-get install protobuf-compiler python-pil python-lxml

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

【问题讨论】:

  • 如果你只是按回车呢?

标签: google-colaboratory


【解决方案1】:

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

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

例如:

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

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

【讨论】:

    猜你喜欢
    • 2019-07-20
    • 2023-02-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-30
    • 1970-01-01
    相关资源
    最近更新 更多