Install python-ptrace

python-ptrace supports Python 3.6 and newer.

Install from source

Download tarball

Get the latest tarball at the Python Package Index (PyPI).

Download development version

Download the development version using Git:

git clone

Browse python-ptrace source code.

Option dependency


Note: pip is strongly recommanded.

Type as root:

python3 install

Or using sudo program:

sudo python3 install


For faster debug and to avoid ctypes, you can also install cptrace: Python binding of the ptrace() function written in C:

python3 install

Run tests

Run tests with tox

To run all tests, just type:


The tox project creates a clean virtual environment to run tests.

Run tests manually



It’s also possible to run a specific test:

PYTHONPATH=$PWD python3 tests/