Skip to content

Latest commit

 

History

History
111 lines (76 loc) · 2.49 KB

conda.md

File metadata and controls

111 lines (76 loc) · 2.49 KB

conda

Conda selbst aktualisieren

conda update conda

Initialize Conda prompt

Powershell: conda init powershell

Conda Environments

Conda Environment erstellen

conda create --name <NEW_ENV_NAME>
conda create --prefix <NEW_ENV_PATH>

Conda Environment klonen

conda create --name <NEW_ENV_NAME> --clone <OLD_ENV_NAME>

Conda Environment entfernen

conda remove --name myenv --all

Conda Environment umbenennen

Geht leider nicht. Lösung: Klonen und altes entfernen.

requirements.txt erstellen

conda list --export > requirements.txt

environment.yml erstellen

conda env export --from-history -f environment.yml

Environments default Pfad ändern

conda config --add envs_dirs c:\conda-envs

c:\users\[USER]\.condarc

https://conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html#specify-environment-directories-envs-dirs

Paketmanagemetn

Install from requirements.txt

conda install --file requirements.txt

Spezifische Paket Version / Build installieren

conda install PAKET=VERSION
conda install PAKET=VERSION=BUILD

https://docs.conda.io/projects/conda-build/en/latest/resources/package-spec.html#package-match-specifications

Conda Environment Revisions / History

Revisions anzeigen

conda list --revisions

Revision wiederherstellen

conda install --revision NUMBER