Create empty conda environment

后端 未结 4 553
梦谈多话
梦谈多话 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 09:52

    If you've created a create_default_packages block in your .condarc file, @joelion's answer will install those packages. If you don't want those, use the --no-default-packages flag. For example:

    conda create --name myenv python --no-default-packages
    
    0 讨论(0)
  • 2020-12-04 09:56

    This is how to create a truly empty (light) conda_env with 0 packages:

    conda create --name myenv --no-default-packages
    

    it will take a few seconds to create and finish.

    0 讨论(0)
  • 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!

    0 讨论(0)
  • 2020-12-04 10:16

    You can give a package name of just "python" to get a base, empty install.

    conda create --name myenv python
    conda create --name myenv python=3.4
    
    0 讨论(0)
提交回复
热议问题