一、 配置canda环境变量 测试环境变量是否正确 二、解决办法 打开Anaconda Prompt(或者PowerShell)。在Anaconda Prompt中输入以下命令并回车: conda init powershell 重启PyCharm。