How to Install PyLab on Python

PyLab is a module that belongs to the Python mathematics library Matplotlib. PyLab combines the numerical module numpy with the graphical plotting module pyplot. PyLab was designed with the interactive Python interpreter in mind, and therefore many of its functions are short and require minimal typing. This makes it a very efficient and convenient mathematical tool. If you want to install PyLab, you must also install Matplotlib. This process is fairly simple and follows the standard installation procedure of any application.

Architect working on calculator and laptop
How to Install PyLab on Python
credit: surasaki/iStock/Getty Images

Windows

Step

Navigate to the Matplotlib download website (see Resources for link).

Step

Download the file named "matplotlib-x.x.x.win32-py2.7.exe," where x.x.x is the current version of Matplotlib.

Step

Save the file to your Desktop.

Step

Double-click the file to begin the installation process. Follow the brief onscreen instructions by pressing the button labeled "Next." Installation will take less than a minute on most machines.

Mac OS

Step

Download the file named "matplotlib-x.x.x-python.org-py2.6-macosx10.3.dmg," where x.x.x is the current version of Matplotlib.

Step

Double-click the "DMG" file to open it. A new finder window will appear.

Step

Locate the Matplotlib icon within the finder window.

Step

Drag the Matplotlib icon into your Applications directory. Matplotlib will now be installed.

Ubuntu Linux

Step

Open up a bash shell.

Step

Type in the following command to download and install Matplotlib:

Step

sudo apt-get install python-matplotlib

Step

Type in the administrators password to proceed with the install.