Installation

On Windows use:

(.venv) $ pip install pysikuli
python -m pip install pysikuli

On MacOS and Linux use:

(.venv) $ pip3 install pysikuli
python3 -m pip install pysikuli

External dependencies

External dependencies mostly belong to the sounddevice module, which is used to user-friendly capture Region and Location. However, pysikuli can work normally without them.

Windows:

sounddevice dependence:

Linux:

sounddevice dependencies:

$ sudo apt install libportaudio2

Also, pysikuli will try to install this package on its own the first time you run it

MacOS

You need to enable Accessibility and Screen capture permissions to terminal or python itself.

VS Code add-ons

I would also recommend installing these VS Code’s add-ons:

  • Paste Image, for pasting screenshots directly in the code from clipboard. You can also set up a specific folder to store your pics.

  • Image preview, for preview captured photos

  • luna-paint, useful tool for fast cropping captured images inside VS Code