今天装环境的时候conda
提示:
1 2 3 4 5 6 7 8 9 10 |
Solving environment: failed 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/ubuntu/anaconda3/envs/detect current conda version: 4.5.12 minimum conda version: 4.12 Update conda and try again. $ conda install -p "/home/ubuntu/anaconda3" "conda>=4.12" |
最新的anaconda
安装包是2018年发布的,自带的conda
版本是4.5.11
,很明显版本有点低,所以我们需要手动升级,打开下面这个网站:https://anaconda.org/anaconda/conda/files?version=4.5.13
选择对应的系统下载好conda
的包,比如:linux-64/conda-4.5.13-py37_0.tar.bz2
这个,下载完毕之后,进入base
环境中,输入:
conda install conda-4.5.13-py37_0.tar.bz2
1 2 3 4 5 6 7 |
(base) ubuntu@part2:~/bigdisk$ conda install conda-4.5.13-py37_0.tar.bz2 Downloading and Extracting Packages ############################################################################################################## | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done |
这样就成功升级conda
版本,不过这个时候仍会报错,最后运行一下:conda config --set allow_conda_downgrades true
之后就可以正常安装了。
相关问题:
TypeError: ‘<' not supported between instances of 'str' and 'NoneType'
这个问题一般出现在升级conda版本之后,可以见该问题: 此时就可能会出现: # >>>>>>>>>>>>>>>...
时间:2022/6/25 分类:Linux 人气:27 评论:0
振奋
具体说说
可以试试在线工具 非常好用
非常好
很好
同意的问题
来晚一步,找了一圈发现api容器已经被删了,现在还有什么其他办法吗?
六六六