【问题标题】:How can I install the ibm watson module?如何安装 ibm watson 模块?
【发布时间】:2020-02-08 13:10:48
【问题描述】:

我正在尝试在 Python 3 中运行 IBM Watson 的自然语言理解,但无法安装模块。这是我开始的:

import json 
from ibm_watson import NaturalLanguageUnderstandingV1 
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator 
from ibm_watson.natural_language_understanding_v1 import Features,EntitiesOptions, KeywordsOptions

错误信息是:

没有名为 ibm_watson 的模块

【问题讨论】:

    标签: ibm-watson sentiment-analysis


    【解决方案1】:

    确保您已安装最新版本的 Watson Python SDK(目前为 4.2.1)。例如,使用 pip:

    pip install --upgrade "ibm-watson>=4.2.1"
    

    有关更多信息和示例,请参阅API reference

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-06-15
      • 2019-06-01
      • 2019-05-04
      • 2017-02-13
      • 2023-03-09
      • 2013-12-30
      • 2011-03-24
      相关资源
      最近更新 更多