Installation ============ Tethne has been extensively tested in a Mac OSX environment. Although this version of Tethne has not been tested on Windows, there's no reason in principal why it shouldn't work. If you do try it on Windows, `let us know how it goes `_. Installing Dependencies ----------------------- With Anaconda (Recommended) ''''''''''''''''''''''''''' It is highly recommended that you use Tethne with the `Anaconda Python `_ stack. Anaconda includes its own Python build, as well as a large array of scientific and numerical Python libraries. Once you have downloaded and installed Anaconda, proceed to :ref:`install-tethne`. Without Anaconda '''''''''''''''' Python `````` Tethne requires Python 2.7 (untested in Python 3.x). You can get the latest release from `Python.org `_. SciPy/NumPy ``````````` SciPy and NumPy are Python libraries for scientific and numerical computing. For details on installing the SciPy stack, see `this page `_. Installing SciPy/NumPy with pip doesn't tend to work very well. To install the SciPy stack with Macports (from the terminal): .. code-block:: bash $ sudo port install py27-numpy py27-scipy py27-matplotlib py27-ipython +notebook py27-pandas py27-sympy py27-nose This should install SciPy, `NumPy `_, `Matplotlib `_, `IPython `_, `Pandas `_, `SymPy `_, and `Nose `_. Of particular interest for Tethne are SciPy, NumPy, and Matplotlib. But it doesn't hurt to have the rest. HDF5 ```` For ``PyTables`` to work properly, you will need to download and install HDF5. You can get the latest source code and binaries `here `_. Dependencies '''''''''''' :: scipy==0.14.0 numpy==1.8.1 networkx==1.8.1 matplotlib==1.3.1 tables==3.1.1 Unidecode==0.04.16 geopy==0.99 nltk==2.0.4 .. _install-tethne: Installing Tethne ----------------- You can install Tethne and all of its (other) dependencies using ``pip``. .. code-block:: bash $ pip install tethne If pip can't find a "stable" release (see `this page `_) then you may get an error that looks like this: .. code-block:: bash Downloading/unpacking tethne Could not find a version that satisfies the requirement tethne (from versions: ... ) Cleaning up... No distributions matching the version for tethne Storing debug log for failure in ... In that case, use the ``--pre`` flag: .. code-block:: bash $ pip install tethne --pre You can also download the latest version of Tethne from the `Python Package Index `_, or from the `Tethne project site `_. Unzip the ``tar.gz`` archive, and then: .. code-block:: bash $ cd /path/to/unzipped/tethne-x.y.z $ python setup.py install