Debian Codegraph @

docs/install.rst

raw
1 .. default-role:: code
2
3 ============
4 Installation
5 ============
6
7 To install PyAutoGUI, install the `pyautogui` package from PyPI by running `pip install pyautogui` (on Windows) or `pip3 install pyautogui` (on macOS and Linux). (On macOS and Linux, `pip` refers to Python 2's pip tool.)
8
9 OS-specific instructions are below.
10
11 Windows
12 -------
13
14 On Windows, you can use the ``py.exe`` program to run the latest version of Python:
15
16 ``py -m pip install pyautogui``
17
18 If you have multiple versions of Python installed, you can select which one with a command line argument to ``py``. For example, for Python 3.8, run:
19
20 ``py -3.8 -m pip install pyautogui``
21
22 (This is the same as running ``pip install pyautogui``.)
23
24 macOS
25 -----
26
27 On macOS and Linux, you need to run ``python3``:
28
29 ``python3 -m pip install pyautogui``
30
31 If you are running El Capitan and have problems installing pyobjc try:
32
33 ``MACOSX_DEPLOYMENT_TARGET=10.11 pip install pyobjc``
34
35 Linux
36 -----
37
38 On macOS and Linux, you need to run ``python3``:
39
40 ``python3 -m pip install pyautogui``
41
42 On Linux, additionally you need to install the ``scrot`` application, as well as Tkinter:
43
44 ``sudo apt-get install scrot``
45
46 ``sudo apt-get install python3-tk``
47
48 ``sudo apt-get install python3-dev``
49
50 PyAutoGUI install the modules it depends on, including PyTweening, PyScreeze, PyGetWindow, PymsgBox, and MouseInfo.