Installation¶
HTTPolice is a Python package that requires Python 3.4+. PyPy is also supported.
Like other Python packages, HTTPolice is installed with pip from PyPI. If you’re not familiar with pip, you may need to install it manually or from your OS distribution.
On Debian/Ubuntu¶
Depending on your setup, you may or may not need to install these packages:
$ sudo apt-get install python3-pip python3-dev libxml2-dev libxslt1-dev zlib1g-dev
Then, to install the HTTPolice command-line tool into ~/.local/bin
:
$ pip3 install --user HTTPolice
Or, to install it system-wide:
$ sudo pip3 install HTTPolice
Check that the installation was successful:
$ httpolice --version
HTTPolice 0.7.0
On Fedora¶
Same as above, but the dependency packages are:
$ sudo dnf install python3-pip gcc gcc-c++ redhat-rpm-config python3-devel libxml2-devel libxslt-devel
On Windows¶
After installing a recent Python, typically all you need to do is:
C:\Users\Vasiliy\...\Python36>Scripts\pip install HTTPolice
Check that the installation was successful:
C:\Users\Vasiliy\...\Python36>Scripts\httpolice --version
HTTPolice 0.7.0
But if pip install
starts trying (and failing) to compile some libraries,
you may need to give it a hand: check the PyPI pages for those libraries
(such as lxml or Brotli) to find versions that have suitable
pre-built binares (*-win32.whl
), and install those specific versions first.
For example:
C:\Users\Vasiliy\...\Python36>Scripts\pip install lxml==3.8.0
C:\Users\Vasiliy\...\Python36>Scripts\pip install Brotli==1.0.4
C:\Users\Vasiliy\...\Python36>Scripts\pip install HTTPolice