Warning:This Python interpreter is in a conda environment, but the environment

输入python报错:Warning:This Python interpreter is in a conda environment, but the environment_第1张图片

解决方案:

conda info --envs,查看Anaconda的位置,复制base后面的位置信息

Warning:This Python interpreter is in a conda environment, but the environment_第2张图片

conda activate E:\learning\Python\anaconda3

然后又出现问题

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
If using 'conda activate' from a batch script, change your
invocation to 'CALL conda.bat activate'.

按照要求输入:CALL conda.bat activate

Warning:This Python interpreter is in a conda environment, but the environment_第3张图片

输入:conda init

Warning:This Python interpreter is in a conda environment, but the environment_第4张图片

 

 

 

 

 

你可能感兴趣的:(Warning:This Python interpreter is in a conda environment, but the environment)