conda list gives you a list of packages used in the envconda list -e > requirements.txt saves all the infos about packages to your folderactivate myenvconda env export > environment.ymlconda env create -f environment.ymlpip install -r requirements.txt<aside>
💡 Trick: environment_ops.yml als eine einfache Kopie von environment_env.yml erstellen. Anschließend manuell die Versionsnummern anhängen. Diese finde ich durch z.B. conda list pandas. So erhalte eine super schlanke Version von environment_env.yml jedoch mit manuellem Aufwand. Pakete wie jupytext, black oder ipykernel werden nicht in _ops benötigt.
</aside>
Run the following command in your activated environment:
conda env export > environment_ops_all.yml
This creates the file environment_ops_all.yml.
The run the script simplify_environment from your root directory:
python simplify_environment.py