“ImportError: cannot import name OSRNG” when impor

2019-08-24 16:38发布

问题:

I have installed gcloud on my machine and it works correctly.

When deploying to Google App Engine, I install all requirements to lib (pip install -t lib -r requirements.txt).

回答1:

You have to add pycrypto to your libraries in app.yaml:

libraries:
- name: pycrypto
  version: "latest"