数信云[conda/R包镜像]

数信云[conda/R包镜像]#

[!NOTE]

不论是安装python包、R包还是conda包,都可能遇到下载慢、下载失败的情况!

为了解决上述情况,数信云将R-cran,R-bioconductor以及conda的所有镜像都进行了实时同步克隆,方便大家快速安装软件和包!

1.使用SXY自建cran镜像源

# 在R中执行以下命令
options(repos = c(CRAN = "http://sxygptcloud.com:6003/cran"))
#options(repos = c(CRAN = "http://sxycloud1.top:11429/cran")) #备用

2.使用SXY自建bioconductor镜像源

# 在R中执行以下命令
options(BioC_mirror="http://sxygptcloud.com:6004/bioconductor")
#options(BioC_mirror="http://sxycloud1.top:11427/bioconductor") #备用

3.使用数信院自建conda镜像

### 方式1 ###
# 将所有仓库如main/bioconda/conda-forge等都添加进.condarc
# 优点:安装软件不需要指定仓库,方便
# 缺点:每一次搜索安装都会按照顺序逐个搜索仓库,有时候很慢

# 终端执行以下命令
conda config --add channels http://sxygptcloud.com:6002/conda/ekernf01
conda config --add channels http://sxygptcloud.com:6002/conda/radiomics
conda config --add channels http://sxygptcloud.com:6002/conda/dacase
conda config --add channels http://sxygptcloud.com:6002/conda/pyg
conda config --add channels http://sxygptcloud.com:6002/conda/terhorst
conda config --add channels http://sxygptcloud.com:6002/conda/r
conda config --add channels http://sxygptcloud.com:6002/conda/msys2
conda config --add channels http://sxygptcloud.com:6002/conda/pytorch
conda config --add channels http://sxygptcloud.com:6002/conda/nvidia
conda config --add channels http://sxygptcloud.com:6002/conda/conda-forge
conda config --add channels http://sxygptcloud.com:6002/conda/bioconda
conda config --add channels http://sxygptcloud.com:6002/conda/free
conda config --add channels http://sxygptcloud.com:6002/conda/main
conda config --set show_channel_urls yes

# 使用格式:
conda install pytorch

### 方式2 ###
# 指定要安装的软件的仓库
# 优点:只在指定仓库搜索,速度快
# 缺点:需要人工指定仓库

# 若需要安装pytorch,原命令是conda install pytorch -c pytorch
# 使用数信云镜像的命令:
conda install -c http://sxygptcloud.com:6002/conda/pytorch pytorch

# 若需要安装pandas,原命令是conda install pandas -c conda-forge
# 使用数信云镜像的命令:
conda install -c http://sxygptcloud.com:6002/conda/conda-forge pandas

# 备用
http://sxygptcloud.com:6002 替换为 http://sxycloud1.top:11428

温馨提示:目前数信云自建镜像仅限服务器用户使用