执行pip install future,安装future后,程序正常执行! 参考:(20条消息) PyTorch: ModuleNotFoundError: No module named 'past'_RaySunWHUT-CSDN博客