2019年7月

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']