Create empty conda environment

后端 未结 4 566
梦谈多话
梦谈多话 2020-12-04 09:37

I can create a new conda environment, with program biopython with this:

conda create --name snowflakes biopython

What if I do

4条回答
  •  没有蜡笔的小新
    2020-12-04 10:07

    To create an environment that is absolutely empty, without python and/or any other default package, just make a new folder in envs directory in your Anaconda installation (Anaconda3 in this example):.

    ~\Anaconda3\envs>mkdir empy_env
    

    The first time that you activate this environment a directory named Scripts in Windows, bin in Linux, with a few batch files are created. At the time of this post this works for Anaconda version 4.3.30 both in Windows and Linux.

    I have noticed that @cel has suggested the same thing in the first comment under the question, but obviously it hasn't got the attention it deserves!

提交回复
热议问题