# 环境

  • CentOS 8.0 64 位
  • 2 核 4GB

# git

# 更新
yum update
# 安装
yum install git
# 查看
git version

# nodejs

# 下载
mkdir /opt/software
mkdir /opt/module
cd /opt/software/
wget https://nodejs.org/dist/v14.16.0/node-v14.16.0-linux-x64.tar.xz
# 解压
tar xvJf node-v14.16.0-linux-x64.tar.xz /opt/module/nodejs
# 添加环境变量
vim /etc/profile
export PATH=$PATH:/opt/module/nodejs/bin
# 重新载入
source /etc/profile
# 设置淘宝镜像源
npm config set registry https://registry.npm.taobao.org
# 查看
npm config ls -l

# python 配置

# 更新
yum install
# 安装必要的共享库,参考链接:https://blog.csdn.net/agonysome/article/details/108985079
yum install mesa-libGL.x86_64
# 更新 pip
python3 -m pip install --upgrade pip
# 安装常用开发软件包
python3 -m pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
python3 -m pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
python3 -m pip install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.cn/simple
python3 -m pip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
更新于 阅读次数

请我喝[茶]~( ̄▽ ̄)~*

宇凌喵 微信支付

微信支付

宇凌喵 支付宝

支付宝