INSTALL 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Installing Python-Markdown
  2. ==========================
  3. Checking Dependencies
  4. ---------------------
  5. Python-Markdown requires the ElementTree module to be installed. In Python2.5+
  6. ElementTree is included as part of the standard library. For earlier versions
  7. of Python, open a Python shell and type the following:
  8. >>> import cElementTree
  9. >>> import ElementTree
  10. If at least one of those does not generate any errors, then you have a working
  11. copy of ElementTree installed on your system. As cElementTree is faster, you
  12. may want to install that if you don't already have it and it's available for
  13. your system.
  14. See <http://effbot.org/zone/element-index.htm> for more information or to
  15. download the latest version of ElementTree.
  16. The East Way
  17. ------------
  18. The simplest way to install Python-Markdown is by using SetupTools. As and
  19. Admin/Root user on your system do:
  20. easy_install ElementTree
  21. easy_install Markdown
  22. That's it, your done.
  23. Installing on Windows
  24. ---------------------
  25. Download the Windows installer (.exe) from PyPI:
  26. <http://pypi.python.org/pypi/Markdown>
  27. Double-click the file and follow the instructions.
  28. If you prefer to manually install Python-Markdown in Windows, download the
  29. Zip file, unzip it, and on the command line in the directory you unzipped to:
  30. python setup.py install
  31. If you plan to use the provided command line script, you need to make sure your
  32. script directory is on your system path. On a typical Python install of Windows
  33. the Scripts directory is `C:\Python25\Scripts\`. Adjust according to your
  34. system and add that to your system path.
  35. Installing on *nix Systems
  36. --------------------------
  37. From the command line do the following:
  38. wget http://pypi.python.org/packages/source/M/Markdown/Markdown-2.0.tar.gz
  39. tar xvzf Markdown-2.0.tar.gz
  40. cd markdown-2.0/
  41. sudo python setup.py install
  42. Using the Git Repository
  43. ------------------------
  44. If your the type that like to live on the edge, you may want to keep up with
  45. the latest additions and bug fixes in the repository between releases.
  46. Python-Markdown is maintained in a Git repository on Gitorious.org. To
  47. get a copy of Python-Markdown from the repository do the following from the
  48. command line:
  49. git clone git://gitorious.org/python-markdown/mainline.git python-markdown
  50. cd python-markdown
  51. python setup.py install