Closed Opdoop closed 4 years ago
According stackflow solved by following command:
pip install --upgrade google-api-python-client
It's good to handle this bug and make installation pain-free š
@Opdoop thanks for the fix, and the PR.
@jinyongyoo It looks like this problem happens bc the google lm depends on google.protobuf
, which I'm assuming is installed when you install tensorflow. So now that tensorflow is optional, google.protobuf
doesn't exist. Should we add google-api-python-client
to the requirements.txt as is done in #342? Or should we make google
lazily imported somehow?
Thanks. Issues Solved.
Bug
install textattack through pip missing dependent package
Enviroment
Ubuntu 18.04.5 LTS conda 4.8.3
Reproducing
Then encounter this:
I tried
pip install google
and the pip freeze are below:but still
textattack --help
givesModuleNotFoundError: No module named 'google'