创建空的 conda 环境

2022-01-10 00:00:00 python anaconda

问题描述

我可以使用程序 biopython 创建一个新的 conda 环境:

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

conda create --name snowflakes biopython

如果我不想安装任何程序怎么办?看来我做不到:

What if I do not want to install any program? It seems I can not do that:

» conda create --name tryout
Error: too few arguments, must supply command line package specs or --file

You can specify one or more default packages to install when creating
an environment.  Doing so allows you to call conda create without
explicitly providing any package names.

To set the provided packages, call conda config like this:

    conda config --add create_default_packages PACKAGE_NAME


解决方案

你可以给一个包名只是python"来获得一个基本的空安装.

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

相关文章