Installing Python is a straightforward process, here are the steps:
- Go to the office python website to download the latest version of python.
- Open the installer and follow the instructions to complete the installation process.
- After the installation is complete, you can verify that Python has been installed correctly by opening the terminal and typing python (or python3).
If Python is installed correctly, you should see the Python version number and the Python shell prompt (“>>>”)
A program called pip is a package installer for python, and you can use it to install Jupyter Notebook which is used to view most of the exercise files.
To install pip, follow these steps:
- Open the terminal and type the following command:
sudo easy_install pip
- Once the installation is complete, you can verify that pip is installed by typing the following command:
pip --version
- You should see information about the version of pip that you just installed.
To install Jupyter Notebook using pip, here are the steps:
- Type the following command:
pip install jupyter
It will install the entire Jupyter ecosystem. - If you want to only install Jupyter Notebook, type the following command:
pip install notebook
- If you want to open exercise file in Jupyter Notebook, you can first navigate to the exercise directory in the terminal and then type the following command:
jupyter notebook
This will launch Jupyter Notebook in your default web browser as shown below: