ChatGPT-Conda
ChatGPT-Conda
1. Install Conda
Install Miniconda or Anaconda from their respective websites:
Miniconda: https://docs.conda.io/en/latest/miniconda.html
Anaconda: https://www.anaconda.com/products/distribution
`conda create -n ENV_NAME Create environment with specific `$ conda create -n my_env
PKG_NAME` numpy pandas`
package(s)
environment
4. Managing Packages
`conda create --name NEW_ENV -- Clone an existing `$ conda create --name new_env --
clone OLD_ENV` clone old_env`
environment
`conda env export > Export current environment to a `$ conda env export >
env.yml` my_env.yml`
YAML file
`conda env create -f Create an environment from a YAML `$ conda env create -f
env.yml` my_env.yml`
file
`conda clean --all` Remove unused packages and cache files `$ conda clean --all`
`conda config --show channels` Show the list of configured `$ conda config --show
channels`
channels
`conda config --add channels Add a new channel `$ conda config --add channels
CHANNEL_NAME` conda-forge`
conda deactivate
conda remove --name data_env --all
This cheat sheet provides all key commands to work efficiently with Conda. Let me
know if you need more details!