0_python_AB
0_python_AB
a) Anaconda includes conda, a package manager that helps you install, update, and manage
Python libraries and dependencies. Conda can handle packages from the Anaconda
repository as well as other repositories, and it resolves complex dependencies to ensure
compatibility.
b) Anaconda provides tools for creating isolated environments with different sets of
packages and versions. This allows you to manage multiple projects with different
requirements on the same system without conflicts.
c) The Anaconda distribution comes with many popular libraries and tools preinstalled,
including NumPy, pandas, SciPy, scikit-learn, Jupyter Notebook, and more.
d) Anaconda supports the conda-forge channel, which is a community-maintained collection
of packages.
e) Anaconda includes a graphical user interface called Anaconda Navigator. It provides a
user-friendly way to manage environments and packages, launch applications like Jupyter
Notebook and Spyder, and perform other tasks without using the command line.
2. Once installed. Open Anaconda Prompt by typing it in Windows Explorer. If you have Mac,
you can simply open the Terminal.
3. Note that ‘ (base)’ is written at the prompt. This signifies that you are at the base
environment. In Python, an "environment" generally refers to a self-contained workspace
where you can install specific versions of Python and its packages without affecting other
projects or the system-wide Python installation.
4. Type following commands to create the environment for Data Science. In the Data Science,
environment you can install libraries dedicated to doing only data science. Suppose, in
parallel you are doing a Data Engineering Project that require completely different set of
Python libraries. So, you can create another Python environment for latter. This will avoid any
version or library conflicts between the two projects.
This activates the environment and you enter your data science environment
5. After all the above steps, its time to open the Jupyter notebook. For this, first create a
directory in your local machine where you will be working with Data Science. Go to that
directory in the anaconda command prompt.
6. Type jupyter notebook
7. You will see a browser window open with jupyter notebook. Note the ds_env when you click
on New button
8. Click on the ds_env to create a new jupyter notebook. Click on Untitled to rename it. I have
renamed it to DS-1.
9. Type the commands shown in picture. It should work fine. If not then either there is a
problem with setting up the environment or installation of the libraries or not opening
jupyter notebook from ds_env.
10. Congratulations on setting up the environment and basic setup to do hands-on for this
course.