Importror: sys.meta_path não é nenhum, o python provavelmente está fechando
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