-
Notifications
You must be signed in to change notification settings - Fork 0
Useful Conda Commands
https://docs.anaconda.com/free/miniconda/miniconda-install/
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o ~/Downloads/Miniconda3-latest-Linux-x86_64.sh
curl https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -o ~/Downloads/Miniforge3-Linux-x86_64.sh
conda config --set auto_activate_base false
conda create –n [environment name]
conda create –n [environment name] python=3.6
conda create –n [environment name] anaconda
conda env list
conda create –n [environment name] --clone [environment name]
conda install --name [transformers] ipykernel -y
conda install -n summ_feextract ipykernel --update-deps
Sometimes the package name might need to be enclosed in "" If prefixed by *
conda search –c conda-forge streamlit==0.71.0
For Mamba
mamba repoquery search –c conda-forge streamlit==0.71.0
conda install --file requirements.text -c conda-forge –c defaults –c anaconda
conda env create –f environment.yml
conda env update –n <name of the env> -f environment.yml
conda env export --name <envname> > <path/for/environment.yml>
conda env export > <path/for/environment.yml>
pip list --format freeze > <path/for/requirements.txt>
pip freeze > <path/for/requirements.txt>
conda list –e > <path/for/requirements.txt>
conda list –e –n <envname> > <path/for/requirements.txt>
conda config --show
conda config --add channels conda-forge
Default conda config