How to import external library in python? -



How to import external library in python? -

hie can help me out detailed process of downloading & importing external library called pyenchant, check spelling of word valid english language word or not

the official pyenchant page asks these prerequisites before install:

prerequisites

to pyenchant , running, need next software installed:

python 2.6 or later enchant library, version 1.5.0 or later. windows users, binary installers below include pre-built re-create of enchant. mac osx users, binary installers below include pre-built re-create of enchant.

for convenience there's exe should able above - download it.

if want install enchant first, , pyenchant, download enchant here.

pyenchant on pypi, should able

pip install pyenchant

if don't have pip, download get-pip.py , run python get-pip.py (this might require have admin privileges)

and in python prompt,

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

from documentation:

>>> 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"]

python

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -