How to import external library in python?
Question: Hie can anyone help me out with detailed process of downloading & importing an
external library called PyEnchant, to check a spelling of word is valid
english word or not


Answer: The official [PyEnchant
page](https://pythonhosted.org/pyenchant/download.html) asks these
prerequisites before you install:

> **Prerequisites**
>
> To get PyEnchant up and running, you will need the following software
> installed:
>  
>  
>     Python 2.6 or later
>     The enchant library, version 1.5.0 or later.
>         For Windows users, the binary installers below include a pre-built
> copy of enchant.
>         For Mac OSX users, the binary installers below include a pre-built
> copy of enchant.
>  

For your convenience there's an exe which should be able to do the above -
[Download
it](http://pypi.python.org/packages/any/p/pyenchant/pyenchant-1.6.6.win32.exe).

If you want to install enchant first, and then pyenchant, then download
enchant from [here](http://www.abisource.com/download/).

Pyenchant is on [PyPi](https://pypi.python.org/pypi/pyenchant/), so you should
be able to

    
    
    pip install pyenchant
    

If you don't have pip, then download [get-
pip.py](https://bootstrap.pypa.io/get-pip.py) and run `python get-pip.py`
(this might require you to have admin privileges)

and then in your python prompt,

    
    
    >>> import enchant
    >>> help(enchant)
    

From the [documentation](https://pythonhosted.org/pyenchant/):

    
    
    >>> import enchant
    >>> d = enchant.Dict("en_US")
    >>> d.check("Hello")
    True
    >>> d.check("Helo")
    False
    >>> d.suggest("Helo")
    ['He lo', 'He-lo', 'Hello', 'Helot', 'Help', 'Halo', 'Hell', 'Held', 'Helm', 'Hero', "He'll"]
    

