26
GETTING STARTED WITH CONDA
We all know that Anaconda is the very popular amongst Data Scientists, python Programmers, etc. This Article helps you with getting started with Conda and setting up Anaconda in your PC. This article also helps you with Setting up Environments in your PC using Anaconda.
Wikipedia says that - Anaconda is a distribution of the Python and R programming languages for scientific computing (data science, machine learning applications, large-scale data processing, predictive analytics, etc.), that aims to simplify package management and deployment. The distribution includes data-science packages suitable for Windows, Linux, and macOS. It is developed and maintained by Anaconda, Inc., which was founded by Peter Wang and Travis Oliphant in 2012. As an Anaconda, Inc. product, it is also known as Anaconda Distribution or Anaconda Individual Edition, while other products from the company are Anaconda Team Edition and Anaconda Enterprise Edition, both of which are not free.
Step :1
Go to Anaconda Site - https://www.anaconda.com/Visit The Anaconda website Login if you want to. Then Click on Get Started.
Step :2
Download Anaconda for your PC based on Your OSClick on the download Anaconda Installers and select your OS.
Step :3
Install AnacondaAfter the file gets downloaded, Install it. The installation Process will be pretty simple. This might take some time so have a cup of Tea and Come back.
Anaconda official website documentation about Conda Says that - Conda is an open-source package management system and environment management system that runs on Windows, macOS, and Linux. Conda quickly installs, runs, and updates packages and their dependencies. Conda easily creates, saves, loads, and switches between environments on your local computer. It was created for Python programs but it can package and distribute software for any language.
In its default configuration, Conda can install and manage the over 7,500 packages at repo.anaconda.com that are built, reviewed, and maintained by Anaconda®.
So many people doesn't understand the purpose of creating Environments and how to create the work environment in anaconda.
Note: MAC/LINUX Users use the terminal and Windows users use Anaconda Prompt for the following steps:
conda create --name myenv
✅ When conda asks you to proceed, type
y
:proceed ([y]/n)?
This creates the myenv environment in
/envs/
. No packages will be installed in this environment.conda create -n myenv python=3.6
conda create -n myenv scikit-learn
(OR)
conda create -n myenv python
conda install -n myenv scikit-learn
conda create -n myenv scipy=0.15.0
(OR)
conda create -n myenv python
conda install -n myenv scipy=0.15.0
conda create -n myenv python=3.6 scipy=0.15.0 astroid babel
myenv
- basically your environment name .💡 TIP:
These are the basic ways to creating an environment. However You can do much more with
conda create
command. For details, run conda create --help
.conda activate myenv
myenv
- basically your environment name conda deactivate
conda create --name myclone --clone myenv
myclone
- basically the name of clone environment myenv
- name of the environment that you want to clone conda env list
(OR)
conda info --envs
conda env export > environment.yml
Share the
environment.yml
file with the person whom who wanted to share.conda env create -f environment.yml
conda remove --name myenv --all
conda list --revisions
Then make a note of that
REVNUM
conda install --revision=REVNUM
(OR)
conda install --rev REVNUM
conda install -n myenv pip
conda activate myenv
pip install streamlit
This sums up the basic things about Anaconda, Its installation and Environments. How ever you can refer to the official website of Anaconda and check its documentation if you want to dive deeply into it or to know more about it.
🌐 Anaconda Official Site: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#
➡ There is a video about the the same in a youtube channel Data Professor. He explained neatly within the code editor lively. I highly recommend you to watch the video if you want to have visual explanation about the basic things about the Conda
🎥 Data Professor Youtube Channel @DATA PROFESSOR: https://youtu.be/sDCtY9Z1bqE
K. SAI GOUTHAM
If you have found value through this article consider supporting me. Cheers!
If you have found value through this article consider supporting me. Cheers!
✨
My Git Hub
- Follow me on Git Hub and Visit My Github for Python and Data Science Related Projects.✨
MEDIUM
- Follow me on medium for my articles✨
My Linkedin
- You can connect with me through linkedin✨
Patreon
- You can Follow me and Support Me by contributing to my patreonThank You for visiting my article. 👋🏻
26