In this tutorial, we will see what is anaconda, the benefits of using anaconda, and how to install it then we will see what is conda, the difference between Anaconda and conda, and the commands of conda. so let’s start-
What is Anaconda?
Anaconda is an open-source package manager, environment manager, and data science distribution for python and R languages. It includes more than 1,500 data science packages that are compatible with Linux, Windows, and macOS. it mostly used for package management and deployment. It provides tools for collecting data from several sources with Machine Learning and AI algorithms.
Benefits of Anaconda
- It is an open-source platform.
- It includes more than 1,500 open-source packages with free community support.
- Anaconda is platform-agnostic, so you can use it whether you are on Windows, macOS, or Linux.
- It is an environment where we can easily manage deployment for any specific project.
- It is best for machine learning and AI.
Downloading and Installing in Linux
There are step for installation you have to follow:-
1 – Download anaconda installer from here
https://www.anaconda.com/products/individual#linux
2 – Verify data integrity with SHA-256
open the terminal and run the following command
1 |
sha256sum path/downloaded_file_name(Anaconda3-2021.05-Linux-x86_64.sh) |
3 – after that run this command on the terminal to start the installation
1 |
bash path/downloaded_file_name(Anaconda3-2021.05-Linux-x86_64.sh) |
4 – now you will see the license agreement press “enter” to view license terms and continue then do agree on license terms and enter “yes” to continue.
5 – after that, you will see three options on terminal Enter to accept the default install location, CTRL-C to cancel the installation, specify an alternate installation directory. choose and enter to process further.
6 – then the terminal asks you Do you wish the installer to initialize Anaconda3 by running conda init? type “yes” and enter. If anaconda will successfully be installed into your system you will see this message “Thank you for installing Anaconda<2 or 3>!” on the terminal.
Difference between Anaconda and conda
Anaconda includes 1,500 open-source packages for python and R like conda, numpy, scipy, ipython notebook, and so on. whereas conda is a package manager which helps to install and uninstall libraries in your working environment and so on.
Some basic conda commands
1. Create an environment
1 |
conda create --name environment_name(e.g. myenv) |
or
1 |
conda create -n environment_name(e.g. myenv) |
2. Activate conda environment
1 |
conda activate environment_name(e.g. myenv) |
3. Deactivate conda environment
1 |
conda deactivate |
4. see list of conda environments
1 |
conda env list |
5. create env with specific python version
1 |
conda create -n myenv python==2.e |
6. Remove environments through conda
1 |
conda env remove -n <ENV_NAME> |
7. How can I rename a conda env name
1 |
conda create --name <new_env_name> --clone <old_env_name> |
then remove old env
1 |
<span style="font-size: medium;">conda remove --name old_env_name --<span class="hljs-built_in">all</span></span> |
8. See installed packages list
first, activate the environment then run this command on terminal
1 |
conda list |
I hope this blog is helpful to you. Feel free to comment for any queries or suggestions. Also, You can follow me here for more such blogs. Thanks for reading.