在命令行输入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.

【现象】

在命令行输入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”

 

【解决方法】

  1、确定当前环境

  使用终端或Anaconda提示符执行以下步骤。

  默认情况下,活动环境---您当前使用的环境---显示在命令提示符开头的括号()或括号[]中:(myenv) $

  如果您没有看到这个,请运行:conda info --envs

  在显示的环境列表中,当前环境以星号(*)突出显示。

  

  2、激活环境

  conda activate myenv

  

 

posted @ 2019-04-19 01:40  Lamfai  阅读(33982)  评论(0编辑  收藏  举报