"ImportError: cannot import name OSRNG" when importing gcloud.storage in Google App Engine

"ImportError: cannot import name OSRNG" when importing gcloud.storage in Google App Engine

我已经在我的机器上安装了 gcloud,它工作正常。

部署到 Google App Engine 时,我将所有要求安装到 lib (pip install -t lib -r requirements.txt)。

您必须将 pycrypto 添加到 app.yaml 中的 libraries:

libraries:
- name: pycrypto
  version: "latest"