Installation

Installing htmlPy

Note

htmlPy is dependent on PySide which is not included in dependencies. Please refer the installation instructions for PySide.

You can install htmlPy with pip:

$ [sudo] pip install htmlPy

Or with easy_install:

$ [sudo] easy_install htmlPy

Or download the compressed archive from PyPI, extract it, and inside it, run:

$ [sudo] python setup.py install

Note

Superuser access may be required if you are trying to install htmlPy globally. Please use sudo before the above commands in such case.

Installing PySide

Note

For detailed installation instructions, refer PySide documentation.

htmlPy is dependent on PySide which is not included in the dependencies of htmlPy installation. PySide has to be installed manually. Following are the ways to do this.

  1. On Windows

    PySide can be installed with pip:

    $ pip install PySide
    

    Or with easy_install:

    $ easy_install PySide
    
  2. On Mac OS X

    You need to install or build Qt 4.8 first. You can use Homebrew and install Qt with:

    $ brew install qt
    

    After this, PySide can be installed with pip:

    $ pip install PySide
    

    Or with easy_install:

    $ easy_install PySide
    
  1. On Linux (refer this for detailed instructions)

    Installing PySide on linux with python installers is very slow as it requires compiling PySide from scratch. Hence, it is not included in the dependencies.

    A faster way is to use package managers of the operating system. On Ubuntu, you can install it with:

    $ sudo apt-get install python-pyside
    

    or:

    $ sudo apt-get install python3-pyside
    

    depending on the python version.

    If you are installing in a virtualenv or if you want to build PySide from scratch, you can install it with python installers. (This will take quite some time to compile):

    $ [sudo] pip install PySide
    $ [sudo] easy_install PySide
    

    Or refer to this link.