ubuntu中Conda环境安装Openclaw
第一步 配置环境安装curl后续通过crul命令安装。1. 更新包列表sudo apt update2. 使用命令安装curlsudo apt install curl3. 验证curl是否成功安装curl --version这个命令会显示curl的版本信息如果没有错误信息这意味着curl已经成功安装在你的系统上了。二. 创建conda环境并激活conda create --name openclaw python3.12 conda activate openclaw三. 在这个 conda 环境里安装 Node.js、npm 和 gitconda install -c conda-forge nodejs git -y1.检查一下自己当前到底会用哪里的 Node/npmwhich node which npm npm config get prefix如果输出类似/home/alex/anaconda3/envs/openclaw/bin/node /home/alex/anaconda3/envs/openclaw/bin/npm /home/alex/anaconda3/envs/openclaw那说明现在主要走的是 conda 环境。2.OpenClaw 官方文档要求 Node 推荐 24或至少 22.14因此需要确认一下版本node -v npm -v四. 没问题的话开始安装 OpenClaw 命令行工具npm install -g openclawlatest安装完成warning是依赖包提示不影响安装。下面继续检查which openclaw openclaw --version如果which openclaw输出类似/home/alex/anaconda3/envs/openclaw/bin/openclaw说明它确实装在你的 conda 环境里。五. 初始化配置并安装后台 daemon 服务openclaw onboard --install-daemonopenclaw devices list六. 最后我选择浏览器启动因此还需要进一步进行配置1. 按CtrlAltT新打开一个终端然后激活环境conda activate openclaw2. 查看待批准设备openclaw devices list它应该会列出一个待批准的设备ID 类似你页面上这个ff125464-8362-41ea-9377-8fc095fd0983. 批准这个设备直接复制页面给你的命令执行openclaw devices approve ff125464-8362-41ea-9377-8fc095fd098注意你要以你页面实际显示的完整 ID 为准。4. 回到网页重新连接批准完成后回到这个网页点连接5.特殊情况批准之后出现[openclaw] Could not start the CLI.[openclaw] Reason: unknown requestId[openclaw] Debug: set OPENCLAW_DEBUG1 to include the stack trace.[openclaw] Try: openclaw doctor[openclaw] Help: openclaw --help(openclaw) alexAlex:~$ openclaw devices list这个不是安装失败OpenClaw 已经装好了。现在的问题是你批准的这个requestId已经过期/被新的请求替换了所以提示Reason: unknown requestId官方文档也说明如果浏览器重新发起配对旧的 pending request 会被新的requestId替代所以要在批准前重新运行openclaw devices list用最新的 requestId。你现在按这个顺序来1 不要关网页先在终端运行openclaw devices list它会显示当前待批准的请求。2找里面最新的requestId不要再用刚才这个旧的要复制openclaw devices list里显示的新 ID。3用新的 ID 批准格式是openclaw devices approve 新的requestId比如openclaw devices approve xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx4回到网页点“连接”批准成功后回到浏览器页面点连接或者刷新页面后再连接。七.安装成功八.配置DeepSeek模型1. 进入配置向导如图所示开始配置openclaw configure2.去网页设置模型记得改成DeepSeek然后发个消息开始养龙虾吧。