BY.Tan

记录点滴

Win10安装miniconda报错SSLError

波比 / 2020-05-27


工作站(Win10)重新安装了miniconda之后,运行conda update conda 老提示SSLError错误。由于修改了国内镜像,以为是镜像url出了问题,点击发现镜像url可以访问,百思不得解。一顿试错操作后发现如下为正解。

conda config --set show_channel_urls yes
ssl_verify: true
show_channel_urls: true
channel_alias: https://mirrors.tuna.tsinghua.edu.cn/anaconda
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
C:\ProgramData\Miniconda3
C:\ProgramData\Miniconda3\Library\bin
C:\ProgramData\Miniconda3\Scripts

如此,再运行conda命令操作不再报错。