警告内容为:
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.输入conda info --envs
确定当前环境 ,星(*)号后面就是当前环境。
例如:* D:\Anaconda3
2.输入conda activate D:\Anaconda3
(1)如果出现下面的情况就成功啦
(2)如果出现下面的情况:CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’.
If using ‘conda activate’ from a batch script, change your
invocation to ‘CALL conda.bat activate’.
那么就需要再输入CALL conda.bat activate,就会成功啦
**