<commit_before>PIP
===

pip is the easiest way to install psutil.
It is shipped by default with Python 2.7.9+ and 3.4+. If you're using an
older Python version `install pip <https://pip.pypa.io/en/latest/installing/>`__
first.
If you GIT cloned psutil source code you can also install pip with::

    make install-pip

Unless you're on Windows, in order to install psutil with pip you'll also need
a C compiler installed.
pip will retrieve psutil source code or binaries from
`PYPI <https://pypi.python.org/pypi/psutil>`__ repository.

Permission issues (UNIX)
========================

The commands below assume you're running as root.
If you're not or you bump into permission errors you can either:

* prepend ``sudo``, e.g.:

::

    sudo pip install psutil

* install psutil for your user only (not at system level):

::

    pip install --user psutil

Linux
=====

Ubuntu / Debian::

    sudo apt-get install gcc python-dev python-pip
    pip install psutil

RedHat / CentOS::

    sudo yum install gcc python-devel python-pip
    pip install psutil

If you're on Python 3 use ``python3-dev`` and ``python3-pip`` instead.

Major Linux distros also provide binary distributions of psutil so, for
instance, on Ubuntu and Debian you can also do::

    sudo apt-get install python-psutil

On RedHat and CentOS::

    sudo yum install python-psutil

This is not recommended though as Linux distros usually ship older psutil
versions.

OSX
===

Install `XcodeTools <https://developer.apple.com/downloads/?name=Xcode>`__
first, then:

::

    pip install psutil

Windows
=======

The easiest way to install psutil on Windows is to just use the pre-compiled
exe/wheel installers hosted on
`PYPI <https://pypi.python.org/pypi/psutil/#downloads>`__ via pip::

    C:\Python27\python.exe -m pip install psutil
<commit_msg>fix #873: fix typo in INSTALL<commit_after>PIP
===

pip is the easiest way to install psutil.
It is shipped by default with Python 2.7.9+ and 3.4+. If you're using an
older Python version `install pip <https://pip.pypa.io/en/latest/installing/>`__
first.
If you GIT cloned psutil source code you can also install pip with::

    make install-pip

Unless you're on Windows, in order to install psutil with pip you'll also need
a C compiler installed.
pip will retrieve psutil source code or binaries from
`PYPI <https://pypi.python.org/pypi/psutil>`__ repository.

Permission issues (UNIX)
========================

The commands below assume you're running as root.
If you're not or you bump into permission errors you can either:

* prepend ``sudo``, e.g.:

::

    sudo pip install psutil

* install psutil for your user only (not at system level):

::

    pip install --user psutil

Linux
=====

Ubuntu / Debian::

    sudo apt-get install gcc python-dev python-pip
    pip install psutil

RedHat / CentOS::

    sudo yum install gcc python-devel python-pip
    pip install psutil

If you're on Python 3 use ``python3-dev`` and ``python3-pip`` instead.

Major Linux distros also provide binary distributions of psutil so, for
instance, on Ubuntu and Debian you can also do::

    sudo apt-get install python-psutil

On RedHat and CentOS::

    sudo yum install python-psutil

This is not recommended though as Linux distros usually ship older psutil
versions.

OSX
===

Install `Xcode <https://developer.apple.com/downloads/?name=Xcode>`__
first, then:

::

    pip install psutil

Windows
=======

The easiest way to install psutil on Windows is to just use the pre-compiled
exe/wheel installers hosted on
`PYPI <https://pypi.python.org/pypi/psutil/#downloads>`__ via pip::

    C:\Python27\python.exe -m pip install psutil

{'fraction_non_alphanumeric': 0.100960219478738, 'fraction_numerical': 0.006310013717421125, 'mean_word_length': 3.759791122715405, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2035322', 'n_tokens_mistral': 1202, 'n_tokens_neox': 1069, 'n_words': 473}