大一刚入学,因为环境配置与Agent配置遇到一些麻烦。写此post提供一些经验。至于Mac,请参考https://sourabhbajaj.com/mac-setup/。可能需要一些魔法。

一、Windows 上的基础环境配置及工具

此部分介绍了Scoop,可以方便快捷地配置好环境与Agent

安装 Scoop

# 设置 PowerShell 执行策略
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# 下载安装脚本
irm get.scoop.sh -outfile 'install.ps1'
# 执行安装
.\install.ps1

For example, you could install scoop to a custom directory, configure scoop to install global programs to a custom directory, and bypass system proxy during installation. The custom directories should be absolute paths.

.\install.ps1 -ScoopDir 'D:\Applications\Scoop' -ScoopGlobalDir 'F:\GlobalScoopApps' -NoProxy

使用 Scoop

在 https://scoop.sh 中搜索,以 vscode 为例

vscode的搜索结果

# 添加 bucket
scoop bucket add extras
# 安装 vscode
scoop install extras/vscode
  • 配置C语言环境
scoop bucket add main
scoop install mingw
  • 配置Python环境
# 推荐安装 uv , 管理 Python 版本与依赖
scoop install uv
# 默认安装最新版 Python
uv python install

更多操作请参考 uv中文文档

打开 vscode,根据提示安装C语言/Python相关扩展

更多用法请参考 官方文档

镜像源

可以设置镜像源,加速下载

校园网联合镜像站

二、安装Agent

以 deepseek-harness 为例

scoop bucket add versions
scoop install versions/deepseek-harness-pre
# 搞定!