如何在Google Colaboratory的VM中安装额外的软件包?

xpe*_*oni 14 google-colaboratory

我正在玩Google Colaboratory,并注意到tqdm没有预装的蝙蝠.有没有办法安装额外的包?

Bob*_*ith 22

对.您可以根据需要使用pipapt安装软件包.

一个例子pip欢迎笔记本:

!pip install -q matplotlib-venn
from matplotlib_venn import venn2
venn2(subsets = (3, 2, 1))
Run Code Online (Sandbox Code Playgroud)

一个例子apt是在片段中:

!apt update && apt install -y libfluidsynth1
Run Code Online (Sandbox Code Playgroud)

在tdqm的情况下,!pip install tqdm为我工作.