<commit_before>**********
Installing
**********

Installing with pip
===================
Try to install it with

::

   pip install networkx

and an attempt will be made to find and install an appropriate version
that matches your operating system and Python version.

You can also get NetworkX from the Python Package Index manually
at http://pypi.python.org/pypi/networkx
To use pip, you need to have `setuptools <https://pypi.python.org/pypi/setuptools>`_ installed.

You can install the development version (at github.com) with

::

  pip install git://github.com/networkx/networkx.git#egg=networkx

More download file options are at http://networkx.github.io/download.html.


Installing with conda
=====================

If you are using Ananconda/Miniconda distribution of Python then you can
update/install NetworkX to the latest version with

::

    conda install networkx

or to update an existing installation

::

    conda update networkx


Installing from source
======================

You can install from source by downloading a source archive file
(tar.gz or zip) or by checking out the source files from the
Git source code repository.

NetworkX is a pure Python package; you don't need a compiler to build
or install it.

Source archive file
-------------------

  1. Download the source (tar.gz or zip file) from
     https://pypi.python.org/pypi/networkx/
     or get the latest development version from
     https://github.com/networkx/networkx/

  2. Unpack and change directory to the source directory
     (it should have the files README.txt and setup.py).

  3. Run :samp:`python setup.py install` to build and install

  4. (Optional) Run :samp:`nosetests` to execute the tests if you have
     `nose <https://pypi.python.org/pypi/nose>`_ installed.


GitHub
------

  1. Clone the networkx repostitory
     (see https://github.com/networkx/networkx/ for options)
     ::

       git clone https://github.com/networkx/networkx.git<commit_msg>Fix a typo in install.rst<commit_after>**********
Installing
**********

Installing with pip
===================
Try to install it with

::

   pip install networkx

and an attempt will be made to find and install an appropriate version
that matches your operating system and Python version.

You can also get NetworkX from the Python Package Index manually
at http://pypi.python.org/pypi/networkx
To use pip, you need to have `setuptools <https://pypi.python.org/pypi/setuptools>`_ installed.

You can install the development version (at github.com) with

::

  pip install git://github.com/networkx/networkx.git#egg=networkx

More download file options are at http://networkx.github.io/download.html.


Installing with conda
=====================

If you are using Ananconda/Miniconda distribution of Python then you can
update/install NetworkX to the latest version with

::

    conda install networkx

or to update an existing installation

::

    conda update networkx


Installing from source
======================

You can install from source by downloading a source archive file
(tar.gz or zip) or by checking out the source files from the
Git source code repository.

NetworkX is a pure Python package; you don't need a compiler to build
or install it.

Source archive file
-------------------

  1. Download the source (tar.gz or zip file) from
     https://pypi.python.org/pypi/networkx/
     or get the latest development version from
     https://github.com/networkx/networkx/

  2. Unpack and change directory to the source directory
     (it should have the files README.txt and setup.py).

  3. Run :samp:`python setup.py install` to build and install

  4. (Optional) Run :samp:`nosetests` to execute the tests if you have
     `nose <https://pypi.python.org/pypi/nose>`_ installed.


GitHub
------

  1. Clone the networkx repository
     (see https://github.com/networkx/networkx/ for options)
     ::

       git clone https://github.com/networkx/networkx.git
{'fraction_non_alphanumeric': 0.12016190235264357, 'fraction_numerical': 0.0025297242600556538, 'mean_word_length': 3.5240274599542336, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '883065', 'n_tokens_mistral': 1153, 'n_tokens_neox': 1079, 'n_words': 461}