I needed to install some python related packages for a project I was testing out. The particular project required html5lib and markdown2 to be installed using the easy_install command. First make sure that you have the python-setuptools packages installed so you can use the easy_install command. If you do not have this package installed you can follow the directions here to get easy_install working. Once the easy_install command is working properly run the commands below to install html5lib and markdown2.
Command To Install html5lib:
- easy_install html5lib
Command To Install markdown2:
- easy_install markdown2
Example Install Of html5lib and markdown2:
- [root@server web]# easy_install html5lib
- Searching for html5lib
- Reading http://pypi.python.org/simple/html5lib/
- Reading http://code.google.com/p/html5lib/
- Best match: html5lib 0.11.1
- Downloading http://html5lib.googlecode.com/files/html5lib-0.11.1.zip
- Processing html5lib-0.11.1.zip
- Running html5lib-0.11.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wgj7ik/html5lib-0.11.1/egg-dist-tmp-fmUajj
- zip_safe flag not set; analyzing archive contents...
- Adding html5lib 0.11.1 to easy-install.pth file
- Installed /usr/lib/python2.4/site-packages/html5lib-0.11.1-py2.4.egg
- Processing dependencies for html5lib
- Finished processing dependencies for html5lib
- [root@server web]# easy_install markdown2
- Searching for markdown2
- Reading http://pypi.python.org/simple/markdown2/
- Reading http://code.google.com/p/python-markdown2/
- Best match: markdown2 1.0.1.16
- Downloading http://python-markdown2.googlecode.com/files/markdown2-1.0.1.16.zip
- Processing markdown2-1.0.1.16.zip
- Running markdown2-1.0.1.16/setup.py -q bdist_egg --dist-dir /tmp/easy_install-QaPzx0/markdown2-1.0.1.16/egg-dist-tmp-vMTSNH
- zip_safe flag not set; analyzing archive contents...
- markdown2: module references __file__
- markdown2: top-level module may be 'python -m' script
- Adding markdown2 1.0.1.16 to easy-install.pth file
- Installing markdown2 script to /usr/bin
- Installed /usr/lib/python2.4/site-packages/markdown2-1.0.1.16-py2.4.egg
- Processing dependencies for markdown2
- Finished processing dependencies for markdown2
That is all you need to do to have these packages available to Python.