安装完Anaconda后,在命令行输入python会出现warning

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的解决方案 question:安装完Anaconda后,在命令行输入python会出现安装完Anaconda后,在命令行输入python会出现warning
文章图片
# 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的解决方案 question:安装完Anaconda后,在命令行输入python会出现?安装完Anaconda后,在命令行输入python会出现warning
文章图片
reason 安装的是Anaconda中带的python版本,python处于conda环境中,使用python需要激活
solution 【安装完Anaconda后,在命令行输入python会出现warning】1、在命令行输入conda info --envs,查看Anaconda的位置,复制base后面的位置信息
安装完Anaconda后,在命令行输入python会出现warning
文章图片

2、进行激活,conda activate base后面的文件位置 (本文为D:\Anaconda3)
安装完Anaconda后,在命令行输入python会出现warning
文章图片

注意:一定是base*后面的内容都要复制,不然会出错,如上述图片,路径不对会找不到anaconda的环境
3、消除警告

    推荐阅读