1.配置Conda镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
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/cloud/bioconda
conda config --set show_channel_urls yes
conda config --show
配置成功后显示如下
add_anaconda_token: True
add_pip_as_python_dependency: True
aggressive_update_packages:
- ca-certificates
- certifi
- openssl
allow_conda_downgrades: False
allow_cycles: True
allow_non_channel_urls: False
allow_softlinks: False
always_copy: False
always_softlink: False
always_yes: None
anaconda_upload: None
auto_activate_base: True
auto_stack: 0
auto_update_conda: True
bld_path:
changeps1: True
channel_alias: https://conda.anaconda.org
channel_priority: flexible
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
- defaults
client_ssl_cert: None
client_ssl_cert_key: None
查看可用的R版本:conda search R
# Name Version Build Channel
#…………
#r 4.0 r40_1004 anaconda/cloud/conda-forge
#r 4.0 r40hd8ed1ab_1004 anaconda/cloud/conda-forge
#r 4.1 r41hd8ed1ab_1004 anaconda/cloud/conda-forge
安装最新4.1.版本:conda install r-base=4.1
如若转载,请注明出处:https://www.ouq.net/1813.html