谢谢!
我建议最安全的方法是检查脚本开头的版本,如果不合适,请使用错误消息进行挽救,例如:
if sys.version_info[:3] < (3,2,0): print('requires Python >= 3.2.0') sys.exit(1)