cursor终端的配置+使用anaconda虚拟环境
一、终端配置
1.点击这里显示终端

2.找到配置终端设置

3.点击图标,看到settings.json内容。settings.json 配置文件,里面定义了终端和一些编辑器行为

4.内容粘贴为以下内容:
{
// 定义终端配置文件
"terminal.integrated.profiles.windows": {
"Command Prompt": {
"path": "C:\\Windows\\System32\\cmd.exe"
},
"PowerShell": {
"source": "PowerShell"
},
"Git Bash": {
"path": "C:\\Program Files\\Git\\bin\\bash.exe",
"args": ["--login", "-i"]
},
"WSL": {
"path": "C:\\Windows\\System32\\wsl.exe"
}
},
// 设置默认终端为 CMD
"terminal.integrated.defaultProfile.windows": "Command Prompt",
// 可选:自动保存文件
"files.autoSave": "afterDelay"
}
-
Command Prompt → Windows 默认 CMD
-
PowerShell → Windows PowerShell
-
Git Bash → Git for Windows 自带的 Bash shell
-
WSL → Windows Subsystem for Linux
每个 terminal profile 都定义了路径和启动参数,方便在 cursor 里切换终端类型。
设置默认终端:"terminal.integrated.defaultProfile.windows": "Command Prompt"
-
默认启动的终端是 CMD
-
也可以改成
"PowerShell"或"Git Bash",这样打开 cursor时默认终端就是你想要的。
OK完成

二、使用anaconda虚拟环境
1.anaconda的安装,和虚拟环境的创建:
Ananconda的安装和使用,以及pytorch安装_conda安装pytorch-CSDN博客
2.查看虚拟环境,选择所需的虚拟环境,激活即可

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)