Description: This is the base command for the Conda package and environment management system. Running conda by itself will display general usage information and available commands.
Example:
bash
CopyEdit
conda
This will list the basic syntax and available subcommands for conda.
Description: Displays detailed information about your Conda installation, including the environment locations, installed version of Conda, and Python version being used in your environment.
Example:
bash
CopyEdit
conda info
Output will show environment paths, active environment, Conda version, etc.
Description: Lists all the installed packages in the currently active Conda environment along with their versions.
Example:
bash
CopyEdit
conda list
This will display all packages installed in the active environment (or base if none is activated).
Description: Lists all Conda environments on your system, showing the environment names and their locations. The currently active environment will have an asterisk (*) next to it.
Example:
bash
CopyEdit
conda env list
Output will show all environments, like base, geo, etc., with paths.
Description: Creates a new Conda environment named geo with the default Python version (usually the latest version).
Example:
bash
CopyEdit
conda create -n geo python
This command will create an isolated environment called geo with Python installed.
Description: Creates a new Conda environment named geo with a specific Python version (in this case, Python 3.11).
Example:
bash
CopyEdit
conda create -n geo python=3.11
This command will create an isolated environment called geo with Python 3.11 installed.
Description: Activates the Conda environment named geo. Once activated, any Python or package-related commands will be executed within this environment.
Example:
bash
CopyEdit
conda activate geo
This switches your environment to geo, allowing you to work with the packages installed in that environment.
Description: As mentioned earlier, this command lists all available Conda environments, showing you which one is currently active.
Description: Installs mamba from the conda-forge channel. mamba is a faster package manager that is compatible with Conda, offering better performance for installing packages.
Example:
bash
CopyEdit
conda install -c conda-forge mamba
This installs mamba into your current environment.
Description: Activates the geo environment again (if you haven't already done so). Ensures you're working in the correct environment.
Description: Uses mamba to install the geospatial package from the conda-forge channel. This is the same as conda install, but mamba is faster and optimized for performance.
Example:
bash
CopyEdit
mamba install -c conda-forge geospatial
This installs the geospatial package into the active environment (geo in this case) using mamba.
conda create: Creates an isolated environment with the Python version you specify.
conda activate: Activates the environment so you can work inside it.
conda install or mamba install: Installs packages into the active environment. mamba is preferred for its speed.
conda env list: Shows all environments, so you can see which one is active.