ModuleNotFoundError: No module named ‘google‘

Protoc问题

踩过的坑

直接把google移动到python库路径,结果如下:

ImportError: cannot import name 'descriptor' from 'google.protobuf' (unknown location)
//真是一山比一山高

pip install/uninstall protobuf

pip not found
//brew install pip 又说已经有了,嗯???

解决办法

brew reinstall protobuf

新问题

ModuleNotFoundError: No module named 'google'

这是只需要

pip3 install google-cloud

又有新问题,我。。。拳头慢慢。。。

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/3.8'
Consider using the `--user` option or check the permissions.

So?Let ‘s Try!

pip3 install google-cloud --user
pip3 install google-cloud-vision --user

完美解决,太难了我!

碰到这么多坑的原因

官网下载手动安装protobuf。。。欲哭无泪!

你可能感兴趣的:(开发bug修复)