“ImportError: No module named _ssl” with dev_appserver.py from Google App Engine

后端 未结 7 1930
误落风尘
误落风尘 2020-11-27 13:55

Background

\"In the Python runtime, we\'ve added support for the Python SSL Library, so you can now open secure connections to remote servic

7条回答
  •  攒了一身酷
    2020-11-27 14:09

    I added the code to appengine_config.py as listed by Spain Train, but had to also add the following code as well to get this to work:

    phttplib = os.path.join(os.path.dirname(real_os_src_path), 'httplib.py')
    imp.load_source('httplib', phttplib)
    

提交回复
热议问题