1

我正在尝试使用以下命令在 google datalabs Jupyter notebook 上安装 openslide-python: !apt-get install python-openslide

它运行,直到它打印出来:

   Need to get 13.0 MB of archives.
   After this operation, 44.7 MB of additional disk space will be used.
   Do you want to continue? [Y/n]

我在下一个单元格中输入 Y,然后点击运行。它说正在运行……但似乎什么也没发生。如何在这里安装 python-openslide ?

4

1 回答 1

1

请您尝试以下包含该-y选项的方法吗?

!apt-get install -y python-openslide

这是来自http://manpages.ubuntu.com/manpages/wily/man8/apt-get.8.html-y的选项的定义。apt-get

   -y, --yes, --assume-yes
       Automatic yes to prompts; assume "yes" as answer to all prompts and
       run non-interactively. If an undesirable situation, such as
       changing a held package, trying to install a unauthenticated
       package or removing an essential package occurs then apt-get will
       abort. Configuration Item: APT::Get::Assume-Yes.
于 2017-03-30T00:10:07.127 回答