先更新conda
conda upgrade conda
- 如果上一步更新失败,执行这个命令即可
conda update --force conda
报错1:CondaHTTPError: HTTP 000 CONNECTION FAILED
conda配置镜像源:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/fastai/conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/ conda config --set show_channel_urls yes
报错2:CondaValueError: Malformed version string '~': invalid character(s).
conda upgrade -n base -c defaults --override-channels conda
第二步更新anaconda
conda update anaconda
第三步,安装python,这个命令默认升级到最新版本
conda install python
- 如需指定版本
conda install python=3.8
【2】conda Malformed version string '~': invalid character(s) - 简书
【3】『技术随手学』解决CondaHTTPError: HTTP 000 CONNECTION 问题 - 知乎
来源地址:https://blog.csdn.net/qq_42233538/article/details/129997616