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

ぐ巨炮叔叔 提交于 2020-01-07 03:07:02

问题


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"


来源:https://stackoverflow.com/questions/34944968/importerror-cannot-import-name-osrng-when-importing-gcloud-storage-in-google

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!