问题
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