如何将 conda 包导入 google colab?

Gui*_*rst 6 python cartopy conda google-colaboratory

我能够使用 pip 在 google colab 中安装软件包,使用:

!pip install....
Run Code Online (Sandbox Code Playgroud)

但我无法从 conda-forge 安装任何软件包。我试过:

!conda install -c conda-forge cartopy
Run Code Online (Sandbox Code Playgroud)

Abd*_*man 1

获取它的一种方法是直接将conda包解压缩到某个目录。

  1. 从获取您需要的condaanaconda.org,下载它。

  2. 解压并复制到库路径中

下面是使用这种方式从 anaconda 安装的示例faisshttps://gist.github.com/korakot/d0a49d7280bd3fb856ae6517bfe8da7a