installation.rst 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ==================
  2. IEPY installation
  3. ==================
  4. IEPY runs on *python 3*, and it's fully tested with version *3.4*.
  5. These installation notes assume that you have a fresh installation of *Ubuntu 14.04*.
  6. If you are installing IEPY on a different platform, some details
  7. or software versions may be slightly different.
  8. Because of some of its dependencies, IEPY installation is not a single
  9. pip install, but it's actually not that hard.
  10. Outline:
  11. - install some system packages
  12. - install iepy itself
  13. - download 3rd party binaries
  14. System software needed
  15. ----------------------
  16. You need to install the following packages:
  17. .. code-block:: bash
  18. sudo apt-get install build-essential python3-dev liblapack-dev libatlas-dev gfortran
  19. They are needed for python Numpy installation. Once this is done, install numpy by doing:
  20. .. code-block:: bash
  21. pip install numpy
  22. And later, for been able to run some java processes:
  23. .. code-block:: bash
  24. sudo apt-get install openjdk-7-jre
  25. .. note::
  26. Instead of openjdk-7-jre you can use any other java (version 1.6 or higher) you
  27. may have.
  28. **Java 1.8** will allow you to use the **newest preprocess models**.
  29. Install IEPY package
  30. --------------------
  31. 1. :doc:`Create a Virtualenv <virtualenv>`
  32. 2. Install IEPY itself
  33. .. code-block:: bash
  34. pip install iepy
  35. 3. Configure java & NLTK
  36. In order to preprocess documents, set the
  37. environment variable JAVAHOME=/usr/bin/java (or the path where java was installed)
  38. To make this configuration persistent, add it to your shell rc file.
  39. Download the third party data and tools
  40. ---------------------------------------
  41. You should have now a command named "*iepy*". Use it like this to get some required
  42. binaries.
  43. .. code-block:: bash
  44. iepy --download-third-party-data
  45. .. note::
  46. If the java binary pointed by your JAVAHOME is 1.8, newest preprocess models will
  47. be acquired and used.