pkg_resources.require('simplejson==2.1.2')
import simplejson
assert simplejson.__version__ == '2.1.2'
Python: If there are multiple egg versions of the same package installed, how do I import specifically the version I need?