尝试了所有可能解决此错误的方法,但不确定我要去哪里。我已经运行了pip,似乎一切就绪,但是lib错误仍然存在。
还需要其他检查内容的指导
pip install --system --upgrade -r requirements.txt -t lib
$ cat appengine_config.py
import sys
import os
sys.path.insert(0, 'lib')
# appengine_config.py
from google.appengine.ext import vendor
# Add any libraries install in the "lib" folder.
$ cat requirements.txt
GoogleAppEngineCloudStorageClient==1.9.22.1
google-api-python-client
google-cloud
google-cloud-bigquery
#Inside the code
from google.cloud import bigquery
from google.cloud.bigquery import Dataset
ERROR 2018-11-10 16:24:47,981 wsgi.py:263]
Traceback (most recent call last):
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
File "/home/royans/repository/tesmon/tesmonweb/tmon.py", line 32, in <module>
from google.cloud import bigquery
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/sandbox.py", line 1149, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named google.cloud.bigquery