相关文档:https://docs.browser-use.com/quickstart
首先安装UV
命令行cmd
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
设置环境变量
set Path=C:\xx\.local\bin;%Path%
查看版本
uv -V
查看可用和已安装的 Python 版本
uv python list
转到新目录
设置 Python 环境
uv venv --python 3.12
激活环境
.venv\Scripts\activate
uv pip install browser-use
playwright install
安装ollama,参考文档
安装模型
(9G,谨慎下载,根据个人情况选择)ollama run deepseek-r1:14b
(4.7G,改用7b)ollama run deepseek-r1:7b
ollama list
git clone https://github.com/browser-use/web-ui.git
cd web-ui
uv pip install -r requirements.txt
查询端口占用情况
netstat -aon|findstr 7788
启动服务,关闭浏览器?
python webui.py --ip 127.0.0.1 --port 7788
手动修改
运行,感觉有点慢,尝试切换配置LLM api,未完待续,
其他文档:
https://python.langchain.com/docs/integrations/chat/tongyi/
切换OpenManus使用
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。