且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何让 Python 调试任务使用默认的 Powershell 配置文件?

更新时间:2023-01-11 16:37:18

您需要先初始化 conda.

You need to init conda first.

在任何终端中运行 conda init 命令.

Run conda init command in any terminal.

它将在 C:\Users{UserName}\Documents\WindowsPowerShell 文件夹下创建一个 profile.ps1 文件.

It will create a profile.ps1 file under the folder of C:\Users{UserName}\Documents\WindowsPowerShell.

之后,如果您打开 PowerShell,conda 将起作用.它等于 C:/Users/Marko/anaconda3/shell/condabin/conda-hook.ps1

After that, if you open the PowerShell, conda will work. It equals to C:/Users/Marko/anaconda3/shell/condabin/conda-hook.ps1