我的app.yaml包括以下几行:
libraries:
- name: pycrypto
version: "2.6"我有正确的PyCrypto版本:
$ python
>>> import Crypto
>>> Crypto.__version__
'2.6'但是当我在GAE Development SDK交互控制台中尝试评估import Crypto时,我得到的结果是:
Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/python/request_handler.py", line 225, in handle_interactive_request
exec(compiled_code, self._command_globals)
File "<string>", line 12, in <module>
ImportError: No module named Crypto发布于 2015-04-09 02:02:00
因为pycrypto包含本机编译的代码,所以在安装Python时需要自己安装它。假设您已经安装了pip:
pip install pycryptohttps://stackoverflow.com/questions/29514344
复制相似问题