一、安装
1.安装git,我的电脑已经安装了,这里就忽略,不懂的小朋友可以看看相关视频
2.安装wsl,wsl是WSL = Windows Subsystem for Linux(Windows 内置 Linux 子系统)简单:不用装虚拟机、不用双系统,在 Windows 里直接跑原生 Linux。
如果直接输入命令 wsl --install,报错
无法从“https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json”提取列表分发。操作超时 错误代码: Wsl/InstallDistro/WININET_E_TIMEOUT。
换第二种方式
离线指定系统安装(推荐,绕过 Github 下载列表)
(1)先启用 WSL 依赖组件(管理员 CMD/PowerShell)
powershell
wsl --install --enable dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart(2)不用wsl --install自动下载,手动指定发行版安装
powershell,这个安装时间会比较长,预计20分钟左右(下载慢)
# 安装Ubuntu(最常用) wsl --install -d Ubuntu # 备选:Ubuntu-22.04 # wsl --install -d Ubuntu-22.04我运行了两次,第一次到37.7%一直不动,第二次才成功。
3.安装hermes-agent
先打开官网
使用linux命令,复制
打开powershell,输入wsl
进入linux系统下,输入命令curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
安装了py、检测了git,安装了node
在安装其他的虚拟环境
依赖项安装完成之后,就跳转到正式界面
全部按照推荐走就行了,
选择第二个,然后选择deepseek模型
输入APIkey粘贴
BaseURL,直接回车即可
选择V4pro
其他不配置,skip。
最后跳转到hermes界面(如果无法弹出,在wsl下,输入hermes)
这次配置完成。现在可以输入内容测试
关于hermes使用,我们在下篇文章继续讲解。
二、第二种方式安装
如果你不想安装wsl,直接在win中安装hermes,可行吗?答案是可以的。
https://raw.githubusercontent.com/NousResearch/hermes-gent/main/scripts/install.ps1,这个命令是,Hermes-Gent 是开源本地大模型,这条是它官方一键安装脚本。但是报错了
我们使用pip命令
比如使用pip install hermes-agent -i https://mirrors.aliyun.com/pypi/simple/,可以安装了……
安装完之后,就可以配置了
现在开始就和上面一样了。