Anaconda
"Anaconda is the hardware store of data science tools, Miniconda is the workbench (software distributions), Conda is the assistant (package manager) who helps you get new tools and customise your hardware store or workbench."
Linux Installation Instructions
1. Install Anaconda (if not already installed)
If Anaconda is not installed, you can download and install it:it using the following commands:
wget https://repo.anaconda.com/archive/Anaconda3-latest-Linux-x86_64.sh
bash Anaconda3-latest-Linux-x86_64.sh
- Follow the installation
prompts,prompts. - Ensure Anaconda is added to your
PATH
(this is usually doneby defaultautomatically during installation).
2. Verify Conda Installation
Check if Conda is installed:
conda --version
- You should see the version of Conda
installed.displayed. - If not, ensure that Anaconda's
bin
directory isaddedincludedtoin yourPATH
.
3. Create an Environment
Command:To create a new environment manually, run:
conda env create --name <environment nameenvironment_name>
Replace <environment_name>
with your desired environment name.
4. Create an Environment from a .yaml
File (optional)
.yaml
File (optional)AssumeIf youryou environmenthave a .yaml
file is named(e.g., environment.yaml
.
Command:specifying environment dependencies, create the environment using:
conda env create -f environment.yaml
This command will:
- Create a new environment with the name specified in the
.yaml
file. - Install all the packages and dependencies listed in the file.
5. Activate the Environment
AfterActivate the environmentnewly iscreated created, activate it:environment:
conda activate <environment_name>
Replace <environment_name>
with the name of theyour environment defined in the .yaml file.environment.
5.6. Verify the Environment
Check thatEnsure the environment is set up correctly setby up:listing its installed packages:
conda list
This listswill display all thepackages installed packages in the active environment.
Troubleshooting
Error: "Environment name already exists"
If
theyouenvironmentencounteralreadythisexists,error, you can removeitthe existing environment and recreate it:conda remove --name <environment_name> --all conda env create -f environment.yaml
Missing
dependenciesDependencies orconflictsConflictsEnsure the
.yaml
file is correctly formatted and lists compatible packages.YouFor debugging, you canmanually inspect the file or resolve conflicts using:use:conda env create -f environment.yaml --debug
This revised version improves formatting and fixes minor ambiguities for better readability and user experience. Let me know if you'd like further refinements!
REFERENCES:
For more information on virtual environments please go to
https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment
More installation instructions:
https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html