跳转到内容
GitHub

配置 Conda

通过 .condarc 让 conda 从 Depsilo /conda/ 路由获取 channel 数据与包。

之前https://repo.anaconda.com/pkgs/main
之后http://localhost:23333/conda/pkgs/main

Conda 通过 .condarc 中的 channel 地址指向 Depsilo。Anaconda channel 路径必须包含 pkgs/。

~/.condarc
channels:
- http://localhost:23333/conda/pkgs/main
- http://localhost:23333/conda/pkgs/r
default_channels: []
repodata_use_zst: false

default_channels: [] 防止自动回退到 repo.anaconda.com;repodata_use_zst: false 避免上游没有 .zst 元数据时产生 404。

  1. 确认实例就绪

    终端窗口
    curl -fsS http://localhost:23333/ready
  2. 创建一次隔离的解析

    终端窗口
    conda create --dry-run -n depsilo-check python=3.12
  3. 在 Admin 中确认流量

    在 Access logs 中核对 /conda/ 请求与缓存结果。