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

1、在命令行输入conda info --envs,查看Anaconda的位置,复制base后面的位置信息
安装完Anaconda后,在命令行输入python会出现warning
2、进行**,conda activate base后面的文件位置 (本文为D:\Anaconda3)
安装完Anaconda后,在命令行输入python会出现warning
注意:一定是base*后面的内容都要复制,不然会出错,如上述图片,路径不对会找不到anaconda的环境
3、消除警告

相关文章:

  • 2022-03-04
  • 2021-08-14
  • 2021-09-12
  • 2022-12-23
  • 2021-10-10
  • 2021-12-14
  • 2021-10-29
  • 2021-08-20
猜你喜欢
  • 2021-04-28
  • 2021-12-20
  • 2022-01-07
  • 2022-12-23
  • 2021-08-26
  • 2021-12-31
  • 2021-11-23
相关资源
相似解决方案