1.问题描述:Windows系统安装anaconda后,在cmd或powershell中执行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
看了几篇别人的解决方案均不能一劳永逸,却在无意之中解决了这个问题。
解决办法参考我的这篇博客:解决Windows powershell无法激活conda虚拟环境的问题
使用我之前解决另一个问题时用的方法,结果惊讶的发现这个警告问题也顺便解决了。
用该方法后重新打开终端,发现不会再出现warning。
网友评论