赞
踩
conda create -n myenv python:
报错:
Warning: A newer version of conda exists.
current version: 4.9.2
latest version:4.10.1
Please update conda by running
$ conda update -n base conda
想法:
并没有打算直接运行它给的命令去更新conda,因为一旦更新conda会更惨、问题更多,除非官方建议。造成这个原因,猜测可能是某些包损坏了,需要把那些包剔除掉,然后再载回来,具体操作如下。
解决方法:
ssl_verify: true
show_channel_urls: true
channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/
.condarc文件原先的写法是参考清华开源软件镜像站:
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
- 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
conda clean --packages --tarballs
conda update --all
自己记录一下,希望也可以给大家当个参考。
命令记录:
conda clean -p //删除无用包
conda clean -i //清除索引缓存,保证用的是镜像站提供的索引。
参考文献:
https://blog.csdn.net/qq_42658739/article/details/105019173
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。