Skip to content
Related Articles

Related Articles

How to Install PIL on MacOS?

Improve Article
Save Article
Like Article
  • Last Updated : 26 Oct, 2021

PIL is an acronym for the python image library. It is a library that is used to manipulate images, using PIL library with python we can perform various operations on images. In this article, we are going to learn how we can install PIL on MacOS.

Method 1: Using PIP to install PIL (Pillow).

Python comes preinstalled in MacOs, and if you have not installed the pip, follow the following steps to install pip on your macOS.

Step 1: Download the get_pip python file to install pip.

curl -o

Note: curl is a command-line utility that we have used to download the file.

Step 2: Execute the downloaded python file to install pip:


This will install the pip3 onto your system.

Step 3: Now simply run the following command to install pip(pillow) onto your MacOs:

python3 -m pip install --upgrade Pillow


Pillow installed

Pillow installed

Step 4: To verify the installation run the following command.

pip3 show Pillow


Pillow installed with version 8.3.2

Pillow installed with version 8.3.2

Method 2: Using the Brew command

Simply run the following command in the terminal and it will install the PIL (pillow) onto your MacOS.

brew install pillow


Pillow installed using Brew

Pillow installed using Brew

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!