Activating conda environment with its full path

后端 未结 4 553
忘掉有多难
忘掉有多难 2021-01-04 04:11

Usually, we activate a conda environment with the command:

source activate env_name

Is it possible to activate conda environment with its f

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-04 05:11

    You can activate an environment that is not in your conda environment list by passing the path to the environment. For example you can create an environment in any directory you want with the -p argument. Like so:

    conda create -p /path/to/some/location/mytestenv/ python=3.5
    

    This will NOT show up in conda env list, but you can activate it with:

    source activate /path/to/some/location/mytestenv
    

提交回复
热议问题