问题
I want to use jinja2.PackageLoader on Google App engine, but that appears to depend on pkg_resources, which wasn't added until Python 2.6. Am I Out of luck?
回答1:
You should be able to include pkg_resources.py in your application directory (or elsewhere in sys.path if you're modifying it in your scripts); according to Guido it should work since App Engine 1.2.1.
来源:https://stackoverflow.com/questions/3809304/jinja2-packageloader-on-google-app-engine