Activating conda environment with its full path

后端 未结 4 574
忘掉有多难
忘掉有多难 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 04:47

    Sure, this is a old question but writing the answer for folks returning to this page. When you create a conda environment with the prefix, you'll not be allowed to give it a name. Please follow the below steps so that you'll have name for your conda environment and can activate it directly by using the name rather than the full path.

    1. Navigate to the custom folder where you want to create the new environment.
    2. D:\condaEnvs>conda create --prefix=FastAI --> This creates a conda environment named FastAI
    3. D:\condaEnvs> conda config --append envs_dirs ‘D:\condaEnvs\FastAIEnv’ --> This will give a name to your newly created conda environment.

    With the new versions of conda, we dont have this issue anymore.

提交回复
热议问题