Importerror: sys.meta_path нет, Python, вероятно, закрывает
Try adding
env.close()
or
env.env.close()
at the end of your programs
Yawning Yak
Try adding
env.close()
or
env.env.close()
at the end of your programs