Link

Downloading Libaries


A Python library is a set of programs written by experienced programmers. The library provides some predefined functionalities and lets you focus on your task without thinking of how to write code to build those functionalities. In other words, a library is some code you can instantly use in your program.

We need to download three libraries for our project, and they are


First of all, we need to use a tool called Terminal.

  • Open Terminal
    1. Click launchpad.

    2. Click Other.

    3. Click Terminal.


Now, let’s check if you have installed Python3 :on you computer

  • Change directory to your working directory.

cd /absolute_path_to/your_working_directory/

  • Type the following command in your terminal.

which python3

  • If the computer tells you the following, then you have Python 3 installed on your computer.

/usr/local/bin/python3

  • If it tells you

Python3 not found:

It means you don’t have Python 3 installed on your computer.
Go to Step 1 to install Python 3.


And then, we can start to download the libraries.

We’ll use a program PIP3 to install libraries.

  • Install Pandas. Type in the following command in terminal

pip3 install pandas

  • Install xlrd.

pip3 install xlrd

  • Install openpyxl.

pip3 install openpyxl


Conclusion

This task may look confusing for first-time users, but stick firmly to the guidelines, and you will be 85% done through this whole instruction.

Next, let’s write our first Python code. Jump to Write Code