ibm-watson - 如何安装 ibm watson 模块?
问题描述
我正在尝试在 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 的模块
解决方案
Make sure that you have installed the latest version of the Watson Python SDK (it's 4.2.1 right now). For example, with pip:
pip install --upgrade "ibm-watson>=4.2.1"
See the API reference for more information and examples
推荐阅读
- html - 让文本跨越图像
- node.js - 错误:找不到模块“neo4j-driver/types/v1”
- sql - SQL(DB2)使用 Timestampdiff 和 Cast 以小时为单位的两个日期之间的差异
- java - 需要调用一个数组并在不同的类中打印它
- powershell - 尝试使用 Powershell 从 csv 导入信息,但不幸的是有些结果出错了
- email - PHPMailer可以为每个收件人添加不同的问候语吗
- javascript - jquery 如何写 if (window.width() < 1200 && after window.resize() window.width() > 1200){}
- c# - 翻转绘制文本/字符串的 GraphicsPath
- javascript - asp mvc 动画删除表格行
- python - 如何将未定义数量的可选参数/参数传递给 python 3 脚本