我正在尝试从Google App Engine运行一个Web应用程序,该应用程序使用pandas-gbq访问bigquery。当我构建和运行应用程序时,出现以下错误:
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
Original error was: No module named numpy.core.multiarray
我的 requirements.txt 文件中包含:
google-api-python-client==1.6.5
google-auth==1.4.1
google-auth-httplib2==0.0.3
numpy==1.14.2
pandas==0.22.0
pandas-gbq==0.3.1
过去的三个版本在标准的Python脚本中运行良好,但在Web应用程序外部运行。也许与应用引擎不使用上述指定的numpy版本有关,而是使用内置版本1.6.1:https://cloud.google.com/appengine/docs/standard/python/tools/built-in-libraries-27 有什么解决方法吗?