<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generate_exports():
 	"""Print export commands for setting environment variables. 	"""

	env = []
	for name in list_installed_genomes():
	    try:
	        g = Genome(name)
	        env_name = re.sub(r'[^\w]+', "_", name).upper()
	        env.append("export {}={}".format(env_name, g.filename))
	    except:
	        pass
	return env