Python importing Module that does not exist?

旧街凉风 提交于 2019-12-10 16:40:03

问题


So I was running:

import google
> <module 'google' (built-in)>

In python prompt. google.path

['/Library/Python/2.7/site-packages/google']

I want to delete the google module. So I :

rm -rf /Library/Python/2.7/site-packages/google

IT'S GONE!

But When I go back into python shell I get the same results as above.

(FYI, The python module was for protobuf I believe.)

Any ideas?


回答1:


You need to uninstall the 'protobuf' module.

sudo pip uninstall protobuf


来源:https://stackoverflow.com/questions/27051654/python-importing-module-that-does-not-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!