Package: conda-env-export
Conda Env ExportExport conda env dependencies and pip requirements to ONE yml file.Free software: MIT licenseDocumentation:https://conda-env-export.readthedocs.io.FeaturesEasy to useFlexible options to exportSupport Windows, Linux, and MacRemove duplicated packages automaticallyUsageTo use Conda Env Export in a project:importconda_env_exportTo use Conda Env Export in a terminal:$conda-env-export--helpUsage: conda-env-export [OPTIONS]

Options:
  -n, --name TEXT           Name of environment  [default: `{activated}`]
  --conda-all               Output all conda deps  [default: False]
  --pip-all                 Output all pip deps  [default: False]
  --separate                Output to separate files  [default: False]
  --reserve-duplicates      Reserve duplicates  [default: False]
  --include TEXT            Force to include deps (ignore case)
  --exclude TEXT            Force to exclude deps (ignore case)
  --extra-pip-requirements  Output an extra `requirements.txt`  [default: False]
  --no-prefix               Remove `prefix` in target yml file  [default: False]
  --to-folder DIRECTORY     Where to output the file(s)  [default: ./]
  --to-file FILE            Filename of the output yml file  [default: `{activated}`]
  --help                    Show this message and exit.[RECOMMEND]Export current activated env, just run:$conda-env-export[RECOMMEND]Export a named env, e.g.py37, run:$conda-env-export-npy37[RECOMMEND]Export current activated env to separate files (activated.ymlandrequirements.txt), just run:$conda-env-export--separateNOTE:–separateis different from–extra-pip-requirementsin the output yml file,
where the yml from–separatedoesn’t explicitly list pip dependencies.
It will use-r requirements.txtinstead.[RECOMMEND]Export current activated env and output an EXTRA pip requirements file, just run:$conda-env-export--extra-pip-requirementsWHY: Sometimes it’ll fail to install some pip deps when executingconda env create -f env.yml,
so it’s much more convenient to install pip deps viapip install -r requirements.txtrather thanconda env update -f env.yml –prune.Export a named env and ensure that output MUST includepipandPyYAML, run:$conda-env-export-npy37--includepip--includepyyamlExport a named env and ensure that output MUST excludepipandPyYAML, run:$conda-env-export-npy37--excludepip--excludepyyamlExport with all conda deps and all pip deps ofpy37$conda-env-export-npy37--conda-all--pip-allExport with all conda deps and all pip deps ofpy37, and DO NOT remove duplicates$conda-env-export-npy37--conda-all--pip-all--reserve-duplicatesNote: The operation of remove duplicates refers to remove those deps in pip, which are already in conda deps.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.5.0 (2024-02-05)Fixhttps://github.com/luffy-yu/conda_env_export/issues/5andhttps://github.com/luffy-yu/conda_env_export/issues/60.4.5 (2022-07-26)Fixhttps://github.com/luffy-yu/conda_env_export/issues/3andhttps://github.com/luffy-yu/conda_env_export/issues/40.4.4 (2022-07-18)Fixhttps://github.com/luffy-yu/conda_env_export/issues/20.4.3 (2021-12-20)Addpythonoutput in conda section0.4.2 (2021-12-18)Fix bugs in Windows0.4.1 (2021-12-17)Replace f’{}’ with ‘’%0.4.0 (2021-12-17)MAJOR UPDATE: Support Windows0.3.2 (2021-04-14)Add option:no-prefix.0.3.1 (2021-03-07)Update document.0.3.0 (2021-03-07)Add options:includeandexclude.Add option:extra-pip-requirements.0.2.2 (2020-12-19)Update document.0.2.1 (2020-12-18)Specify pip version.0.2.0 (2020-12-05)Refactor.0.1.4 (2020-11-30)Specify pyyaml verison.0.1.3 (2020-11-29)Fix typo.0.1.2 (2020-11-29)Overwrite PyPI verison.0.1.1 (2020-11-29)Update documents.0.1.0 (2020-11-29)First release on PyPI.