This Python interpreter is in a conda environment, but the environment has not been activated.问题解决

This Python interpreter is in a conda environment, but the environment has not been activated.问题解决

1.确定安装路径

输入命令conda info --envs查看当前环境(*后面的就是安装路径)
这是我的安装路径
This Python interpreter is in a conda environment, but the environment has not been activated.问题解决

2.输入conda activate + 安装目录

conda activate D:\anaconda\install
D:\anaconda\install是我的安装目录
安装完成,前面会出现**(base)**This Python interpreter is in a conda environment, but the environment has not been activated.问题解决

上一篇:python使用虚拟环境 --- virtualenv


下一篇:未能从程序集“System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中加载类型“System.Transactions.TransactionScopeAsyncFlowOption”