Windows避坑指南
针对Windows特有的安装问题,采取以下预防措施:
- 依赖预装::
参考官方Windows Platform Support文档,提前安装VC++运行时库、Windows SDK和WSL2 - environmental isolation::
优先选择conda而非venv,能更好处理路径空格问题(如conda create -n cooragent python=3.12
) - Key Configurations::
- 修改.env中的路径使用双反斜杠(如
C:\Users\
) - Playwright安装后执行
playwright install-deps
- 设置系统环境变量PYTHONUTF8=1
- 修改.env中的路径使用双反斜杠(如
故障排查步骤::
- 检查所有服务是否以管理员身份运行
- pass (a bill or inspection etc)
where python
确认环境隔离 - 使用Process Monitor工具分析文件权限问题
- 临时关闭杀毒软件测试是否影响浏览器工具
This answer comes from the articleCooragent: building a multi-intelligence task collaboration tool in one sentenceThe