Open In App

How to Install PIL on Windows?

In this article, we will look into the various methods of installing the PIL package on a Windows machine.

Prerequisite:

For PIP Users:

Open up the command prompt and use the below command to install the PIL package:



pip install Pillow

The following message will be displayed once the installation is completed:



To verify the installation run the below code in a Python IDE of your choice:




import PIL
  
IL.__version__

Output:

For Conda Users:

Conda users can open up the Anaconda Power Shell and use the below command to install PIL:

conda install -c anaconda Pillow

The following message will be displayed once the installation is completed:

To verify the installation run the below code in a Python IDE of your choice:




import PIL
IL.__version__

Output:

Article Tags :