Cursor 脚本如何进入Conda环境
Cursor 中如何进入 Conda 环境(详细教程)
一、初始化 PowerShell 环境
为了让 PowerShell 识别 Conda 命令,需要执行:
conda init powershell
运行后会显示:
modified C:\Users\Administrator\Documents\WindowsPowerShell\profile.ps1
这一步会在 PowerShell 的配置文件中添加 Conda 初始化脚本。
执行完成后,请务必 关闭并重新打开 Cursor,让设置生效。
三、在 Cursor 中激活 Conda 环境
打开 Cursor 底部的终端(Terminal),确保终端类型是 PowerShell,然后输入:
conda activate test
如果命令提示符前出现:
(test)
则说明你已成功进入名为 test
的 Conda 环境。