Setup Virtual Environment
Installation
- Download Anaconda:
- Visit [anaconda.com/download]
- Choose the appropriate version for your operating system
- Follow the installation wizard instructions
- Verify Installation:
conda --version
Creating and Managing Virtual Environments
Create a new environment:
conda create -n myenv python=3.10
- -n myenv: Sets the environment name.
- python=3.10: Specifies Python version.
List environments:
conda env list
Activate an environment. Note: Your prompt will change to show the active environment.
conda activate myenv
Deactivate an environment:
conda deactivate
Delete an environment:
conda env remove -n myenv