import google
import sys
sys.path.insert(0, '/home/rjy/thirdpy')
print sys.path

['/home/rjy/thirdpy', ...., 'python2.7/site-packages']

print google.__path__

'python2.7/site-packages/google'

pip uninstall google
rm -rf python2.7/site-packages/google

import google
print google.__path__

'python2.7/site-packages/google'

import sys
print sys.modules

{'google': <module 'google' (built-in)>,....}

Temp Method:

import sys
del sys.modules['google']

标签: none

仅有一条评论

  1. Mr.Xie Mr.Xie

    終于更新了,等得我好苦!

添加新评论