赞
踩
Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while installing package ‘conda-forge::certifi-2022.9.24-pyhd8ed1ab_0’.
CondaUpgradeError: This environment has previously been operated on by a conda version that’s newer
Than the conda currently being used. A newer version of conda is required.
Target environment location: /home/xxx/anaconda 3
Current conda version: 4.5.11
Minimum conda version: 22.9
base:Python 3.7.0
网上说的都不奏效,回退版本也不行,upgrade/update也不行
直接重装anaconda(不用删除旧的!采取直接覆盖的方法)
首先在官网下载一个新版的anaconda,比如这个Anaconda3-2022.10-Linux-x86_64.sh
我是在服务器上跑代码的,所以传到服务器上,然后
sh Anaconda3-2022.10-Linux-x86_64.sh -u
加这个-u是因为要覆盖旧的anaconda,如果不加会报下图这个错:
加了之后输个yes按个enter就能成功安装了
好不容易重装了,结果想安包又碰到CondaValueError: Malformed version string ‘~’: invalid character(s).
用下面这个不奏效:
conda update -n base -c defaults conda
用这个奏效:
conda upgrade -n base -c defaults --override-channels conda
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。