http://conda.pydata.org/docs/using/envs.html上的conda文档解释了如何与其他人共享环境.
但是,文档告诉我们这不是跨平台:
NOTE: These explicit spec files are not usually cross platform, and
therefore have a comment at the top such as # platform: osx-64 showing the
platform where they were created. This platform is the one where this spec
file is known to work. On other platforms, the packages specified might not
be available or dependencies might be missing for some of the key packages
already in the spec.
NOTE: Conda does not check architecture or dependencies when …Run Code Online (Sandbox Code Playgroud) 我一直在HostOS的Vmware上安装的Anaconda(4.3.23)GuestOS ubuntu 14.04上使用windows 8.1。我已经在anaconda中设置了一个环境,并安装了许多库,其中一些库的安装非常忙(不是简单的pip安装)。很少有库具有内部依赖性,因此必须从其git源一起构建。
问题 我将使用基于云的VM(Azure GPU实例)来使用GPU。但是我不想再次进入繁忙的安装环境,因为我不想浪费时间重新安装所有软件包和库
有什么方法可以将现有的env(已经安装了所有组件)转移/复制到Cloud VM?
我有一个使用 Python 3.8.15 运行的 Conda 环境的 YML 文件 ( environment.yml)。我目前正在尝试根据以下答案将该文件加载到我的 Google Colab 中:
conda environment in google colab [google-colaboratory] 。
!wget -c https://repo.anaconda.com/archive/Anaconda3-2022.10-Windows-x86_64.exe
!chmod +x Anaconda3-2022.10-Windows-x86_64.exe
!bash ./Anaconda3-2022.10-Windows-x86_64.exe -b -f -p /usr/local
Run Code Online (Sandbox Code Playgroud)
虽然 Anaconda 的可执行文件安装在我的 Google Drive 文件夹中,但当我运行代码时,发现 Colab 无法执行该文件:
./Anaconda3-2022.10-Windows-x86_64.exe: ./Anaconda3-2022.10-Windows-x86_64.exe: cannot execute binary file
Run Code Online (Sandbox Code Playgroud)
我可以使用其他方法来安装 Anaconda 以便在 Google Colab 中使用它吗?此外,environment.yml让 Anaconda 在 Colab 中运行后,我应该如何加载我的文件?