It has the google-cloud package installed, but it cannot pull the texttotext module in the package

48 Views Asked by At
import os
from google.cloud import language
from google.cloud import texttotext

error message:

ImportError: cannot import name 'texttotext' from 'google.cloud' (unknown location)

I'm new to the software, what could be wrong?

I want to make a text bot that connects to the Bard AI and prints text.

pip list : google-cloud 0.34.0 google-cloud-dialogflow 2.25.0 google-cloud-language 2.11.1 google-cloud-texttospeech 2.14.2 python version 3.11.3 I got help from bard artificial intelligence while writing the code.

0

There are 0 best solutions below