错误信息为:No module named 'google'
使用时发现没有谷歌模块,打开anaconda prompt或cmd命令终端,进入当前Python环境,执行conda install google 或 pip install google 无法成功下在google模块,分别执行以下语句:
pip install -i https://mirrors.aliyun.com/pypi/simple/google-cloud
pip install -i https://mirrors.aliyun.com/pypi/simple/google-cloud-vision
之后执行pip install google。
如果google模块下载完成后,执行程序仍有报错,报错信息如下:
打开anaconda prompt终端,进入当前使用的环境,分别执行以下两个命令:
pip uninstall protobuf
pip install protobuf==3.19.0
再次运行程序成功。