使用 activate 命令在 windows 命令提示符窗口生效;在 powershell 中无效,执行 activate 后依然警告:
the environment has not been activated.
1 2 3 4 5 6 7 8 9 10 11
PS C:\Users\fnie> activate PS C:\Users\fnie> python Python 3.9.7 (default, Sep 162021, 16:59:28) [MSCv.191664bit (AMD64)] :: Anaconda, Inc. on win32
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
Type"help", "copyright", "credits" or "license"for more information. >>>