Anaconda安装后,在cmd输入python,出现警告,Warning: This Python interpreter is in a conda environment, but the ..

1.出现警告

按照网上教程安装Anaconda(python3.7)后,出现警告。

 

警告内容为:

Warning:
This Python interpreter is in a conda environment, but the environment has
not been activated.  Libraries may fail to load.  To activate this environment
please see https://conda.io/activation

 

Anaconda安装后,在cmd输入python,出现警告,Warning: This Python interpreter is in a conda environment, but the .._第1张图片

2.处理方法

(1)输入conda info --envs

确定当前环境 ,星(*)号后面就是当前环境。

例如:*  D:\Python\Anaconda3

(2)输入conda activate D:\Python\Anaconda3           环境就可以被激活了

此时输入python就没有警告啦。


Anaconda安装后,在cmd输入python,出现警告,Warning: This Python interpreter is in a conda environment, but the .._第2张图片

3.问题

我下次进cmd,输入python的时候还是会有警告。

这样每次都需要激活环境吗?

菜鸡在线发问,求各位大佬帮忙看一下

 

你可能感兴趣的:(Anaconda安装后,在cmd输入python,出现警告,Warning: This Python interpreter is in a conda environment, but the ..)