Manus的邀请码没拿到?教你用 Trae 部署 Open_Manus

235 阅读2分钟

image.png

一、环境准备

  1. 安装 Trae

  2. Git 环境:没有的话不建议尝试部署,等 manus 开放

  3. Python 版本:仅支持 3.11+

  4. 克隆 OpenManus 项目

    git clone <https://github.com/mannaandpoem/OpenManus.git>
    cd OpenManus
    
  5. 让 Trea 读 readme 文档,提供其他环境安装步骤,根据安装步骤走。

    1. 创建新的 conda 环境:

      首先,确保你已经安装了 Conda(没安装直接问trae怎么安装)。然后运行以下命令来创建并激活一个新的 Conda 环境:

    conda create -n open_manus python=3.12
    conda activate open_manus
    

    image.png


二、安装依赖

  1. Trae命令行执行下面命名,安装依赖:

    pip install -r requirements.txt
    

**三、**配置 LLM API

  1. 在 config 目录下创建 config.toml 文件:

    cp config/config.example.toml config/config.toml
    
  2. 编辑 config/config.toml 文件,添加你的 API 密钥和其他自定义设置:

    # 全局 LLM 配置
    [llm]
    model = "gpt-4o"
    # 用 deepseek 的话,base_url 改 <https://api.deepseek.com/v1>
    base_url = "<https://api.openai.com/v1>" 
    api_key = "sk-..."  # 替换为真实 API 密钥
    max_tokens = 4096
    temperature = 0.0
    

四、项目运行

  1. 快速启动:

    在项目目录下运行以下命令启动 OpenManus:

    python main.py
    
  2. 体验开发中版本

    如果你想体验开发中的版本,可以运行:

    python run_flow.py
    

五、调试与优化

  1. 我尝试用 Google 搜索一直不成功,Bing 也没成功,用百度成功了,你们没问题的话道是不用换。下面是解决办法:
Bing 替换 Google 搜索: <https://github.com/mannaandpoem/OpenManus/issues/277>

Baidu 替换 Google 搜索: <https://github.com/mannaandpoem/OpenManus/issues/253>

六、体验感想

使用起来体验很一般,每个步骤都很忙。不过这只是 MetaGPT 团队三天复刻版本,期待后续更新。

还有就是token消耗很快,还好 deepseek 便宜。

可能主要是为了证明 manus 的可复制性吧,体验说实话很一般。

说回 manus ,看演示 + 测评,整体交互体验不错。个人感觉很快会有一批 “manus” 应用出现了。希望在竞争中,优化 token 消耗吧,贫穷限制了我的使用。。。