def get_installed_version(dist_name, working_set=None):
<EOL>req = pkg_resources.Requirement.parse(dist_name)<EOL>if working_set is None:<EOL><INDENT>working_set = pkg_resources.WorkingSet()<EOL><DEDENT>dist = working_set.find(req)<EOL>return dist.version if dist else None<EOL>
Get the installed version of dist_name avoiding pkg_resources cache