python:命令行输入python出现 :Warning: This Python interpreter is in a conda environment, but the environ...

安装完Anaconda,配置成功环境变量后。

进入命令行,输入python

提示: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中带的python版本,python处于conda环境中,没有激活。

cmd中输入conda info --envs


找到Anaconda的位置,复制base *后面的位置信息

输入:conda activate  <位置信息>

conda activate D:\Anaconda3

即可激活

你可能感兴趣的:(python:命令行输入python出现 :Warning: This Python interpreter is in a conda environment, but the environ...)