centos8部署miniconda、nodejs

发布于:2025-08-30 ⋅ 阅读:(14) ⋅ 点赞:(0)

参考资料

环境说明

  • 本次部署环境为centos8、miniconda

miniconda安装

  • conda 下载地址
    在这里插入图片描述
  • 上传安装包到服务器,并执行如下的命令。(需要注意的部分已经标注了)
[root@yang mnt]# bash Miniconda3-latest-Linux-x86_64.sh 

Welcome to Miniconda3 py313_25.7.0-2

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 
Do you accept the license terms? [yes|no]
>>> yes

Miniconda3 will now be installed into this location:
/root/miniconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/root/miniconda3] >>> 
# 注意必须输入yes
You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>> yes

Thank you for installing Miniconda3!
# 注意必须执行生效配置文件的命令
[root@yang mnt]# source /root/.bashrc

(base) [root@yang mnt]# conda --version
conda 25.7.0
  • 配置镜像源
#中科大
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
#设置搜索时显示通道地址
conda config --set show_channel_urls yes

nodejs安装

sudo yum install nodejs
npm get registry
npm config set registry https://registry.npmmirror.com/

网站公告

今日签到

点亮在社区的每一天
去签到