importsysimportpaddle.fluidasfluidimportlogginglogging.basicConfig()logger=logging.getLogger(__name__)__all__=['check_version']defcheck_version():""" Log error and exit when the installed version of paddlepaddle is not satisfied. """err="PaddlePaddle version 1.6 or higher is required, " \"or a suitable develop version is satisfied as well. \n" \"Please make sure the version is good with your code." \try:fluid.require_version('1.6.0')exceptExceptionase:logger.error(err)sys.exit(1)