"debconf: delaying package configuration, since apt-utils is not installed" :> google 笔记本 bash 错误

"debconf: delaying package configuration, since apt-utils is not installed" :> google notebooks bash error

尝试在 google 云数据实验室的笔记本上安装底图包时 我收到以下错误。我想绘制图表,但似乎未安装底图。

%bash
echo 'Y' | apt-get install python-mpltoolkits.basemap

再次尝试 运行 命令。您可能会发现第一次安装成功,但没有显示完整的输出。

>%%bash
>echo 'Y' | apt-get install python-mpltoolkits.basemap

Reading package lists...
Building dependency tree...
Reading state information...
python-mpltoolkits.basemap is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

与您的问题无关,请使用 %%bash 而不是 %bash%%<magic> 用于单元魔术命令,而 %<magic> 用于行魔术命令。