How to install *************** .. toctree:: Requirement ----------- ``trepan3k`` works with Python version 3.2 and above. However the decompilation features are available for Python versions less than 3.9. In general, runtime decompilation for Python greater than versions 3.8, especially decompilation around a given bytecode offset doesn't exist. See `this link `_ for more information. Using pip --------- If you are using `pyenv `_ or don't need special root access to install: .. code:: console $ pip install trepan3k If you need root access you may insert `sudo` in front or become root: .. code:: console $ sudo pip install trepan3k or: .. code:: console $ su root # pip install trepan3k `trepan3k` can also be installed in Python user install directory: .. code:: console $ pip install --user trepan3k Using easy_install ------------------ Basically the same as using *pip*, but change "pip install" to "easy_install": .. code:: console $ easy_install trepan3k # or trepan2 for Python 2.x .. code:: console $ git clone https://github.com/rocky/python3k-trepan.git $ cd python-trepan $ make check-short # to run tests $ make install # if pythonbrew or you don't need root access $ sudo make install # if pythonbrew or you do need root access Above I used GNU "make" to run and install. However this just calls `python setup.py` to do the right thing. So if you are more familiar with `setup.py` you can use that directly. For example: .. code:: console $ ./setup.py test $ ./setup.py install