我在使用 Google Cloud NL Api 时收到此错误消息。
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-c22ac635f054> in <module>
1 # Imports the Google Cloud client library
----> 2 from google.cloud import language
3 from google.cloud.language import enums
4 from google.cloud.language import types
5
ImportError: cannot import name 'language' from 'google.cloud' (unknown location)
我试图重新安装谷歌云语言。
该命令正在终端上运行(我得到了结果)
gcloud ml language analyze-entities --content="Michelangelo Caravaggio, Italian painter, is known for 'The Calling of Saint Matthew'."
我不认为我正在使用任何虚拟环境。
我想知道库是否安装在正确的位置,但我不知道如何确定?