【问题标题】:unable to install pip install thesaurus python 3.7.4无法安装 pip install thesaurus python 3.7.4
【发布时间】:2019-11-09 07:43:33
【问题描述】:

我无法安装同义词库

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

【问题讨论】:

    标签: python python-3.x module thesaurus


    【解决方案1】:

    你可以试试这个:

    pip install py-thesaurus
    

    【讨论】:

    • 这是有效的,但是使用这个库这个代码不起作用
    • from thesaurus import Word w = Word('box') w.synonyms() ['carton', 'crate', 'pack', 'package', 'trunk', 'bin', 'case', 'casket', 'chest', 'coffer', 'portmanteau', 'receptacle']
    • 查看此页面:libraries.io/pypi/thesaurus。也许你会找到答案。祝你好运!
    猜你喜欢
    • 2018-09-23
    • 1970-01-01
    • 1970-01-01
    • 2015-12-17
    • 1970-01-01
    • 2020-07-17
    • 1970-01-01
    • 1970-01-01
    • 2019-10-14
    相关资源
    最近更新 更多