Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'google' #46

Open
xcosmosbox opened this issue Jul 4, 2021 · 4 comments
Open

ModuleNotFoundError: No module named 'google' #46

xcosmosbox opened this issue Jul 4, 2021 · 4 comments

Comments

@xcosmosbox
Copy link

使用 pip install google 不能解决,不是很清楚这个包的作用,如果是从Google官网下载 ‘protocolbuffers/protobuf‘ 则会缺失‘google.protobuf.descriptor’

@xcosmosbox
Copy link
Author

准确的说,从官方下载的包里,直接导入会报错 “ImportError: cannot import name 'descriptor' from 'google.protobuf' (unknown location)”。但此时我已经将名为‘google’的文件夹复制粘贴到了PyWeChatSpy的文件夹下。

@veikai
Copy link
Owner

veikai commented Jul 4, 2021

pip install protobuf

@xcosmosbox
Copy link
Author

pip install protobuf

感谢,问题解决了。但是接着出现了一个很奇怪的问题,“PermissionError: [WinError 5] 拒绝访问。” 我去网上查了查,查到的解决方案清一色的告诉我需要将 ‘python.exe’的权限改为完全控制权限,但当我想去修改时,发现已经是这个权限等级了,因此我实在不清楚解决方案,只能又来麻烦您了。(我执行的是在本地测试的example.py)

@xcosmosbox
Copy link
Author

pip install protobuf
噢!我解决了,是因为win10自动阻止了程序运行,我将windows defender中关于”应用和浏览器控制“的限制关闭后,程序就能正常运行了。刚刚实在是打扰您了,抱歉。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants