Skip to content
Related Articles

Related Articles

Improve Article

How to Install PIL on Windows?

  • Last Updated : 09 Sep, 2021
Geek Week

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:

installing PIL package using PIP

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



Python3




import PIL
  
IL.__version__

Output:

verifying the installation of PIL

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:

installing PIL package using conda

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

Python3




import PIL
IL.__version__

Output:

verifying the installation of PIL

 Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.  

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course

My Personal Notes arrow_drop_up
Recommended Articles
Page :