1.安装python环境
sudo apt install -y python3 python3-pip
设置 pip 国内镜像
推荐使用清华镜像。
临时使用
pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple
永久设置 pip 镜像
创建配置目录:
mkdir -p ~/.pip
创建配置文件:
nano ~/.pip/pip.conf
写入:
[global]index-url = https://pypi.tuna.tsinghua.edu.cn/simpletrusted-host = pypi.tuna.tsinghua.edu.cntimeout = 6000
保存退出。
验证是否成功
查看配置:
pip config list
或者安装测试:
pip install numpy
如果下载地址显示:
https://pypi.tuna.tsinghua.edu.cn
说明已经生效。
2.安装node环境
- 1.安装nvm
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash
- 2.nvm 安装node
# Download and install Node.js:
nvm install 24
- 3.验证安装
# Verify the Node.js version:
node -v # Should print "v24.15.0".
npm 设置镜像
设置为国内镜像:
npm config set registry https://registry.npmmirror.com
查看当前源:
npm config get registry
恢复官方源:
npm config set registry https://registry.npmjs.org
pnpm 设置镜像
设置:
pnpm config set registry https://registry.npmmirror.com
查看:
pnpm config get registry
检查是否生效
执行:
npm ping
3.安装git
apt install git
4.安装Hermes
Linux, macOS, WSL2, Termux
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
安装后:
source ~/.bashrc # reload shell (or: source ~/.zshrc)
hermes # start chatting!
Windows (native, PowerShell)
irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex
THE END






暂无评论内容