如何安装ibm watson模块? [英] How can I install the ibm watson module?

查看:91
本文介绍了如何安装ibm watson模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to run IBM Watson's Natural Language Understanding in Python 3 but can't get the modules installed. This is what I started with:

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的模块

no module named ibm_watson

推荐答案

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

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"

请参见 API参考了解更多信息和示例

See the API reference for more information and examples

这篇关于如何安装ibm watson模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆