From e77b7d25d886dbc6c969517b5d5dcc41188de5e1 Mon Sep 17 00:00:00 2001 From: Bbrnn Date: Wed, 16 Oct 2024 10:49:39 +0300 Subject: [PATCH 1/2] added package --- environment-ctf.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 environment-ctf.yml diff --git a/environment-ctf.yml b/environment-ctf.yml new file mode 100644 index 0000000..97a839c --- /dev/null +++ b/environment-ctf.yml @@ -0,0 +1,10 @@ +name: summer-ctf +channels: + - defaults + - conda-forge +dependencies: + - python=3.11 + - pip + - pandas + - numpy + - jupyter From 9804e846102e58a2a2994c4ca979dcd5e6657f90 Mon Sep 17 00:00:00 2001 From: Bbrnn Date: Wed, 16 Oct 2024 11:06:42 +0300 Subject: [PATCH 2/2] about Conda enivronment --- aboutCondaEnvironment.md | 90 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 aboutCondaEnvironment.md diff --git a/aboutCondaEnvironment.md b/aboutCondaEnvironment.md new file mode 100644 index 0000000..671c3da --- /dev/null +++ b/aboutCondaEnvironment.md @@ -0,0 +1,90 @@ + +# Conda Environment Guide + +This guide provides an overview of Conda environments, including how to create new environments, manage packages within them, and list all existing environments. Conda environments are isolated spaces where you can manage dependencies and packages separately for different projects. + +## What is a Conda Environment? + +A Conda environment is an isolated environment that allows you to install and manage specific packages and dependencies required for your projects. This isolation ensures that each project has its own set of dependencies, avoiding conflicts between packages. + +## Prerequisites + +Make sure you have Conda installed on your system. You can install Conda by downloading Anaconda or Miniconda: +- [Anaconda](https://www.anaconda.com/products/individual) +- [Miniconda](https://docs.conda.io/en/latest/miniconda.html) + +To verify your Conda installation, open your terminal or command prompt and run: + +```bash +conda --version +``` + +## Creating a Conda Environment + +You can create a new Conda environment with a specific name and specify the packages (such as Python) you want to include. + +### Basic Command + +To create a new environment named `myenv` with Python version 3.9: + +```bash +conda create --name myenv python=3.9 +``` + +Conda will ask for confirmation and list the packages to be installed. Type `y` and press Enter to proceed. + +### Adding Packages During Creation + +You can also specify additional packages during creation. For example, to create an environment with Python 3.9 and the `numpy` and `pandas` packages: + +```bash +conda create --name myenv python=3.9 numpy pandas +``` + +## Activating and Deactivating Environments + +To start using an environment, you need to activate it: + +```bash +conda activate myenv +``` + +When you're done working in the environment, you can deactivate it: + +```bash +conda deactivate +``` + +## Listing All Conda Environments + +To see a list of all the Conda environments available on your system, use the following command: + +```bash +conda env list +``` + +Or you can use this shorthand: + +```bash +conda info --envs +``` + +This will display all environments along with the path to each environment. The currently active environment will be highlighted with an asterisk (`*`). + +## Deleting a Conda Environment + +If you no longer need an environment, you can delete it using: + +```bash +conda remove --name myenv --all +``` + +Replace `myenv` with the name of the environment you wish to delete. + +## Additional Resources + +For more information, refer to the official Conda documentation: +- [Managing Conda Environments](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html) +- [Conda Package and Environment Management](https://docs.conda.io/projects/conda/en/latest/user-guide/index.html) + +