Open In App
Related Articles

How to Install Python Pyscreenshot on Windows?

Improve Article
Save Article
Like Article

PyScreenshot is a Python module and built since the PIL ImageGrab module only supported Windows, although Pillow now supports Linux and macOS as well. Flexible backends, Wayland compatibility, occasionally superior performance, and optional sub-processing are some of the main features of PyScreenshot that make it more useful in many scenarios. Using various back-ends, the module can copy the contents of the screen to a Pillow image memory. This module also replaces the ImageGrab module. Now in most circumstances, the PyScreenshot module is no longer needed. In this article, we will see how to install PyScreenshot on Windows.

Installing PyScreenshot on Windows 

Method 1: Using pip to install PyScreenshot package on Windows

Follow the below steps to install the PyScreenshot package on Linux using pip:

Step 1: First we install the current version of Python3 in the Windows system.

Step 2: Now we check if pip and python are correctly installed or not in our system by checking their versions:

python –version

pip –version


Step 3: Upgrade pip3 to smoothly run the installation process without getting any errors.

pip install –upgrade pip


Step 4: Now we using the following command to install PyScreenshot using pip.

pip install PyScreenshot


Method 2: Using to install PyScreenshot on Windows

Follow the below steps to install the PyScreenshot package on Windows using the file:

Step 1: Download the latest source package of PyScreenshot for python3 from the website for Windows.

curl > pyscreenshot.tar.gz


Step 2: Now we extract the downloaded PyScreenshot package by using the following command:

tar -xzvf pyscreenshot.tar.gz


Step 3: Go inside the pyscreenshot-3.0 folder and use the following command to install the package.

cd pyscreenshot-3.0

python install

Verifying PyScreenshot installation on Windows:

Now we check if the PyScreenshot is successfully installed or not on our Windows system. To do this we import the PyScreenshot package in our Python terminal.

import pyscreenshot


Here, we doesnot get any error will importing the pyscreenshot package then which means the package is successfully installed.

Last Updated : 11 Feb, 2022
Like Article
Save Article
Similar Reads