Skip to content

pixi 无法使用 conda-forge #412

Description

@wohenbushuang

pixi 镜像配置%USERPROFILE%\.pixi\config.toml

[mirrors]
# redirect all requests for conda-forge to mirror
"https://conda.anaconda.org/conda-forge" = [
    "https://mirror.sjtu.edu.cn/anaconda/cloud/conda-forge/",
    ]

报错:

C:\Users\admin>pixi search numpy
Using channels: conda-forge
Error:   × Request failed after 3 retries
  ├─▶ error sending request for url (https://mirror.sjtu.edu.cn/anaconda/cloud/conda-forge/win-64/
  │   repodata_shards.msgpack.zst)
  ├─▶ client error (Connect)
  ╰─▶ invalid peer certificate:
      Other(OtherError(UnsupportedSignatureAlgorithmForPublicKeyContext(UnsupportedSignatureAlgorithmForPublicKeyConte
      xt { signature_algorithm_id: [6, 8, 42, 134, 72, 206, 61, 4, 3, 3], public_key_algorithm_id: [6, 7, 42, 134, 72,
      206, 61, 2, 1, 6, 8, 42, 134, 72, 206, 61, 3, 1, 7] })))

即使在 config.toml 关闭TLS验证

tls-no-verify = true

仍然报错:

C:\Users\admin>pixi search numpy
Using channels: conda-forge
 WARN TLS verification is disabled. This is insecure and should only be used for testing or internal networks.
Error:   × Request failed after 3 retries
  ├─▶ error sending request for url (https://mirror.sjtu.edu.cn/anaconda/cloud/conda-forge/win-64/
  │   repodata_shards.msgpack.zst)
  ├─▶ client error (Connect)
  ╰─▶ tls handshake eof

已使用 "https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/""https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge" 验证过以上 pixi 配置没有问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions