mirror-requests icon indicating copy to clipboard operation
mirror-requests copied to clipboard

pixi 无法使用 conda-forge

Open wohenbushuang opened this issue 3 months ago • 0 comments
trafficstars

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 配置没有问题

wohenbushuang avatar Aug 09 '25 09:08 wohenbushuang