Conda virtual environment not changing under Windows

后端 未结 4 1761
情歌与酒
情歌与酒 2020-12-19 02:44

I have installed Anaconda 2.2.0 for Windows and created a virtual environment via:

> conda create -n my-env anaconda

The environment is

相关标签:
4条回答
  • 2020-12-19 03:00

    You command

    activate astropy-dev
    

    must be run from the D:\Anaconda directory. Then it should work. To check, type:

    conda info -e
    
    0 讨论(0)
  • 2020-12-19 03:04

    You don't need the .bat. It's just activate my-env.

    0 讨论(0)
  • 2020-12-19 03:08

    If you are using Powershell, activate currently does not support it. You will need to modify your PATH manually, or else use the cmd shell.

    0 讨论(0)
  • 2020-12-19 03:13

    Are you calling activate from within a batch script? Then it should be call activate my-env.

    0 讨论(0)
提交回复
热议问题