This Python interpreter is in a conda environment, but the environment has not been activated 解决方案

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

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

This Python interpreter is in a conda environment, but the environment has not been activated 解决方案_第1张图片

原因:

安装的是Anaconda中带的python版本,python处于conda环境中,使用python需要激活;

解决方案:

  1. 在命令行输入conda info --envs,查看Anaconda的位置,复制base后面的位置信息;
    查询Anaconda位置
  2. 进行激活,conda activate base后面的文件位置 (本文为D:\Anaconda)
    激活
  3. 激活成功

你可能感兴趣的:(This Python interpreter is in a conda environment, but the environment has not been activated 解决方案)