Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • DSA
  • Practice Problems
  • Python
  • C
  • C++
  • Java
  • Courses
  • Machine Learning
  • DevOps
  • Web Development
  • System Design
  • Aptitude
  • Projects
Open In App
Next Article:
How to Install PyGTK in Python on Windows?
Next article icon

How to Install Python Pyscreenshot on Windows?

Last Updated : 11 Feb, 2022
Comments
Improve
Suggest changes
Like Article
Like
Report

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

Checking-pip-and-python

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

pip install –upgrade pip

Upgrading-pip

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

pip install PyScreenshot

Installing-pyscreenshot-package

Method 2: Using setup.py to install PyScreenshot on Windows

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

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

curl https://files.pythonhosted.org/packages/d1/75/424e89c341b54040423f55c08cf94946bc38c3fcc4cadbae05e12c09cd2a/pyscreenshot-3.0.tar.gz > pyscreenshot.tar.gz

Downloading-the-source-package-for-PyScreenshot

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

tar -xzvf pyscreenshot.tar.gz

Extracting-the-pyscreenshot.tar.gz-file

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

cd pyscreenshot-3.0

python setup.py install

Installing-pyscreenshot-using-setup.py-file

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

Verifying-pyscreenshot-installation-on-Windows

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



Next Article
How to Install PyGTK in Python on Windows?
author
anilabhadatta
Improve
Article Tags :
  • How To
  • Installation Guide
  • how-to-install

Similar Reads

  • How to Install Pyglet in python on Windows?
    The pyglet library is a cross-platform windowing and multimedia library for Python, intended for developing games and other visually rich applications. In this article, we will look into the process of installing Pyglet in Python on Windows. Pre-requisites: The only thing that you need for installin
    2 min read
  • How to Install Python-pyscreenshot on Linux?
    Python offers multiple libraries to ease our work. Here we'll find out how to click a screenshot using Python. Python provides a package called pyscreenshot for this task. It is only a pure Python wrapper package, with a thin layer over existing back-ends. The performance and interactivity are not v
    2 min read
  • How to Install PyGTK in Python on Windows?
    PyGTK is a Python package or module that enables developers to work with GTK+ GUI Toolkit. This is how WikiBooks describes GTK+: "GTK+ is a highly usable, feature rich toolkit for creating graphical user interfaces which boasts cross platform compatibility and an easy to use API." And this is how gt
    5 min read
  • How to Install py2exe for Python on Windows?
    Py2exe is a Python package that allows the building of standalone Windows executable programs that can be 32-bit or 64-bit from Python scripts. This package has only support to Windows operating system. It can build console executable and windows (GUI) executable. So, in this article, we will be ins
    2 min read
  • How to install Python on Windows?
    Python is a high-level programming language that has become increasingly popular due to its simplicity, versatility, and extensive range of applications. The process of How to install Python in Windows, operating system is relatively easy and involves a few uncomplicated steps. This article aims to
    5 min read
  • How to Install OpenCV for Python on Windows?
    Prerequisite: Python Language Introduction   OpenCV is the huge open-source library for computer vision, machine learning, and image processing and now it plays a major role in real-time operation which is very important in today’s systems. By using it, one can process images and videos to identify
    4 min read
  • How to Install Python Scrapy on Windows?
    Scrapy is a web scraping library that is used to scrape, parse and collect web data. Now once our spider has scrapped the data then it decides whether to: Keep the data.Drop the data or items.stop and store the processed data items. In this article, we will look into the process of installing the Sc
    2 min read
  • How to Install PyOpenGL on Windows?
    PyOpenGL is the most common cross-platform Python binding to OpenGL. In this, article, we will look into the process of installing the PyopenGL Library on Windows. Pre-requisites: The only thing that you need for installing the Scrapy module on Windows are: Python PIP or Conda (depending upon user p
    2 min read
  • How to Install Python's Pymediainfo Module on Windows?
    The Python's Pymediainfo Package is a wrapper around the MediaInfo library. In this article, we will look into the process of installing the Pymediainfo Package on Windows. Pre-requisites: The only thing that you need for installing the Scrapy module on Windows are: Python PIP or Conda (depending up
    2 min read
  • How to Install Pyrebase4 on Windows?
    Pyrebase4 is a python library that is used to interact with Google Firebase. Firebase provides its users with various features like authentication, database, hosting, etc. As Firebase was primarily based on JavaScript, the Pyrebase4 library was created to facilitate the Python developers. In this ar
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences