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会出现![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/6279a4f87b26283758da69793dc1bd29.png)
# 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会出现![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/6279a4f87b26283758da69793dc1bd29.png)
reason
安装的是Anaconda中带的python版本,python处于conda环境中,使用python需要激活
solution
1、在命令行输入conda info --envs,查看Anaconda的位置,复制base后面的位置信息
2、进行激活,conda activate base后面的文件位置 (本文为D:\Anaconda3)
注意:一定是base*后面的内容都要复制,不然会出错,如上述图片,路径不对会找不到anaconda的环境
3、消除警告