This Python interpreter is in a conda environment问题解决

This Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment

This Python interpreter is in a conda environment问题解决_第1张图片

原因–出现这种错误是因为安装的Anaconda中自带的python版本,python处于conda环境中,导致python需要激活:
1,以管理员的身份运行CMD,先验证你的python版本
在这里插入图片描述
出现警告:This Python interpreter is in a conda environment, but the environment has
not been activated. Libraries may fail to load. To activate this environment

2,输入 conda activate 进入(base)
在这里插入图片描述
3,然后输入conda info --envs,查看Anaconda的位置,复制base后面的位置信息
This Python interpreter is in a conda environment问题解决_第2张图片
4,输出conda activate ##base后面的路径##
在这里插入图片描述
激活成功

你可能感兴趣的:(This Python interpreter is in a conda environment问题解决)