:py:mod:`main_create` ===================== .. py:module:: conda_env.cli.main_create .. autoapi-nested-parse:: CLI implementation for `conda-env create`. Creates new conda environments with the specified packages. Functions --------- .. autoapisummary:: conda_env.cli.main_create.configure_parser conda_env.cli.main_create.execute Attributes ---------- .. autoapisummary:: conda_env.cli.main_create.description conda_env.cli.main_create.example .. py:data:: description :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ Create an environment based on an environment definition file. If using an environment.yml file (the default), you can name the environment in the first line of the file with 'name: envname' or you can specify the environment name in the CLI command using the -n/--name argument. The name specified in the CLI will override the name specified in the environment.yml file. Unless you are in the directory containing the environment definition file, use -f to specify the file path of the environment definition file you want to use. """ .. raw:: html
.. py:data:: example :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ examples: conda env create conda env create -n envname conda env create folder/envname conda env create -f /path/to/environment.yml conda env create -f /path/to/requirements.txt -n envname conda env create -f /path/to/requirements.txt -p /home/user/envname """ .. raw:: html
.. py:function:: configure_parser(sub_parsers) .. py:function:: execute(args, parser)