0% found this document useful (0 votes)
49 views13 pages

Anaconda Installation Tutorial 221030

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views13 pages

Anaconda Installation Tutorial 221030

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Anaconda installation – Tutorial Dr Ivan Olier Version 30-10-22

Installing Python with Anaconda(Recommended)


• Go to https://anaconda.com and download “Anaconda”. Note that below
screenshots may differ a bit.

• Let the Anaconda finish downloading.


• Click Next to start the installing process.

1
Anaconda installation – Tutorial Dr Ivan Olier Version 30-10-22

• Agree to the Terms and Conditions.

• Select “Just Me”.

2
Anaconda installation – Tutorial Dr Ivan Olier Version 30-10-22

• Select the location where you want to install Anaconda and press Next.

• Important step “NEED ATTENTION”


1- Check the box that says “Add Anaconda to my Path Variables”.
2- Click Install.

3
Anaconda installation – Tutorial Dr Ivan Olier Version 30-10-22

• Let Anaconda finish installing.

• Click Next to finish installation.

4
Anaconda installation – Tutorial Dr Ivan Olier Version 30-10-22

5
Anaconda installation – Tutorial Dr Ivan Olier Version 30-10-22

Opening Jupyter Notebook using Anaconda


• You will find an Anaconda folder on the “Start” menu (if you are working on Windows), Click
on Anaconda Navigator to open the app. It is a relatively heavy app, so it might take a while
to fully load.

• Click on the “Launch” button of the “Jupyter” tile to open Jupyter Notebook.

6
Anaconda installation – Tutorial Dr Ivan Olier Version 30-10-22

• You will be redirected to your browser with Jupyter Notebook.

Setting up an environment for the module


• Come back to Ananconda Navigator and click on “Environments”.

7
Anaconda installation – Tutorial Dr Ivan Olier Version 30-10-22

• Create New Environment by clicking on Create button.

• A dialog box similar to the one below will be shown. Choose a name for your
8
Anaconda installation – Tutorial Dr Ivan Olier Version 30-10-22

environment (we will use “MLenv” for the rest of the tutorial) and a version of Python,
which should be any one above 3.8. I would recommend any 3.8.x version to match
the one installed on the university IT labs. Press “Create”.

• Once the environment is available, select “Not installed” tab from the drop-down
menu, to install new packages. Use “Search Packages” to find the modules we will
be using during the lessons. At least, you should install:

o Pandas
o Numpy
o Matplotlib
o Scikit-learn
o Jupyter

• Find and select (tick the box) the above packages and press the “Apply” button at the
bottom right.

9
Anaconda installation – Tutorial Dr Ivan Olier Version 30-10-22

• A dialog box should be prompted displaying the list of the packages and their
dependencies that will be installed. Click on “Apply”. It could take a while to install
everything, depending on the size of the packages and hardware.

10
Anaconda installation – Tutorial Dr Ivan Olier Version 30-10-22

• Now we have at least two environments, “Base” and “MLenv”. It is recommended


that you work on the newly created environment instead of the “base (root)” one.

• When you go to “Home” and click on applications, you can see the list of
environments by clicking on the drop-down menu next to the “Channels” button.
Check that you are working on the “MLenv” environment and launch “Jupyter
Notebook”, which should be already installed if the previous steps went well.

• Jupyter Notebook runs on a navigator. When you press the “Launch” button, a new
window or tab will be opened on your default navigator with the Jupyter Notebook
running. It will look similar to the below screenshot. If you want to create a new
“notebook”, press the “New” button and choose “Python 3”.

11
Anaconda installation – Tutorial Dr Ivan Olier Version 30-10-22

• But, before we create new Notebooks, let’s open one already created.

12
Anaconda installation – Tutorial Dr Ivan Olier Version 30-10-22

• For instance, navigate on the list of folders displayed on your Jupyter Notebook and
find “tutorial01” and click on the filename (it should have the .ipynb extension).

• A new tab will be opened with the Notebook:

13

You might also like