0

I am not able to install thesaurus library

C:\Users\veeransa>pip install thesaurus
Traceback (most recent call last):
  File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\program files\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\Python37\Scripts\pip.exe\__main__.py", line 9, in <module>
TypeError: 'module' object is not callable
Ganesh Kathiresan
  • 2,068
  • 2
  • 22
  • 33
Saikumar
  • 3
  • 2

1 Answers1

0

You can try this:

pip install py-thesaurus
mind-protector
  • 248
  • 2
  • 12
  • This is working, But Using this library this code is not working – Saikumar Nov 09 '19 at 13:22
  • from thesaurus import Word w = Word('box') w.synonyms() ['carton', 'crate', 'pack', 'package', 'trunk', 'bin', 'case', 'casket', 'chest', 'coffer', 'portmanteau', 'receptacle'] – Saikumar Nov 09 '19 at 13:23
  • Check this page: https://libraries.io/pypi/thesaurus. Maybe you will find the answer. Good luck! – mind-protector Nov 09 '19 at 13:59