Loading and Installing Libraries - Answer Key

Authors

Noor Sohail

Will Gammerdinger

Published

March 14, 2026

Exercise 1

  1. Repeat the steps above to install the following packages from the Anaconda Navigator:
    • jupyter
    • pandas
    • matplotlib
    • scikit-learn
    • seaborn
    • nb_conda_kernels

This installation may take quite some time as there are many dependencies that will need to be installed for each of these packages.

You will know that the installation is complete if you search installed packages and see each of these libraries with a green checkmark next to them.

Figure 1: Installation of jupyter.
Figure 2: Installation of pandas.
Figure 3: Installation of matplotlib.
Figure 4: Installation of scikit-learn.
Figure 5: Installation of seaborn.
Figure 6: Installation of nb_conda_kernels.

Exercise 2

  1. To ensure that you have successfully installed some of the libraries from the previous exercise, try running the import commands:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns

This should look like:

Figure 7: Loading some of the installed packages. There should be no error message.

If you get an error loading a package it will look like:

Figure 8: How the error message will look if a package failed to load.

Reuse

CC-BY-4.0