<commit_before>.. _dan_installs_on_linux:

================================
A rough guide to Python on Linux - WHERE SHOULD THIS GO???
================================

*Handling Python installs on Linux if you are non-expert can be a confusing
and frustrating experience. However, one of us (DEJH) has recently gone
through the pain, and offers these thoughts on how to get a Python install
capable of running Landlab onto your machine. (As long as your machine is
Debian...)*

NB: A version of Canopy does exist for linux, but DEJH couldn't get this
to install properly. If you can, this is probably the easier way to go!


What you already have, apt-get, and versioning
----------------------------------------------

Your unix box almost certainly already has a version on Python on it.
However, DEJH found it wasn't the right version in his case. The problem
is that the stable Python (and Python package) versions that are
maintained through the Debian package repository that *apt-get* looks at
tend not to be up to date. This is problematic, as Landlab needs at least
Python 2.7, Numpy 1.7, and Scipy 0.12. So first, check your version.

    $ python --version
    <commit_msg>Update dan_installs_on_linux.rst<commit_after>.. _dan_installs_on_linux:

================================
A rough guide to Python on Linux
================================

*Handling Python installs on Linux if you are non-expert can be a confusing
and frustrating experience. However, one of us (DEJH) has recently gone
through the pain, and offers these thoughts on how to get a Python install
capable of running Landlab onto your machine. (As long as your machine is
Debian...)*

NB: A version of Canopy does exist for linux, but DEJH couldn't get this
to install properly. If you can, this is probably the easier way to go!


What you already have, apt-get, and versioning
----------------------------------------------

Your unix box almost certainly already has a version on Python on it.
However, DEJH found it wasn't the right version in his case. The problem
is that the stable Python (and Python package) versions that are
maintained through the Debian package repository that *apt-get* looks at
tend not to be up to date. This is problematic, as Landlab needs at least
Python 2.7, Numpy 1.7, and Scipy 0.12. So first, check your version.

    $ python --version
    
{'fraction_non_alphanumeric': 0.13838341091832415, 'fraction_numerical': 0.005924672027084215, 'mean_word_length': 3.5028571428571427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6014138', 'n_tokens_mistral': 632, 'n_tokens_neox': 591, 'n_words': 349}