What's up, folks! It's been more than a week since I uploaded a new post. I had quite a lot of university work to do. But now everything is on the right path again.

In today's post, we are going to look at how we can create a new Conda environment. For those who don't know Conda:

Conda is an open source package and environment management system that runs on Windows, Mac OS and Linux.
  • it can quickly install, run, and update packages and associated dependencies
  • it can create, load, switch and save between project-specific software environments on your local computer
  • it can distribute and package software for any language such as R, Ruby, Lua, C++, C, Javascript, Java, etc.

For installation instructions please check out Conda's installation guide.

If you've already downloaded Conda on your computer, then let's get started with the very first thing everyone needs to know about Conda. How to create a new environment where you can download all packages you need for your project?

The command for that is

conda create -n name-of-your-new-environment

To activate this environment, use

conda activate name-of-your-new-environment

Now you should see the name of your activated environment on the left side of your username in the terminal.

To install python packages from a requirements.txt file, just use pip for that, as follow:

pip install -r requirements.txt

If you don't have such a file, you can also add the python packages separately with:

pip install package1 package2 package3 

To deactivate a Conda environment, just type in

conda deactivate

That's all folks! It's short but concise!