Is xlrd supported in Google App Engine?

2019-03-04 03:58发布

I have seen posts in Google Groups and here that mention using xlrd in Google App Engine:

How do you read excel files with xlrd on Appengine

https://groups.google.com/forum/?fromgroups=#!searchin/google-appengine-python/xlrd/google-appengine-python/lMix6vXhvtA/O_ExzkGhsKEJ

but when I try to add it to the app.yaml file, it says "the library xlrd is not supported". Also, in the list of 3rd party libraries I don't see xlrd.

https://developers.google.com/appengine/docs/python/tools/libraries27

But then other people seem to be using it on GAE, so does GAE support it or not? In the past I was able to import numpy successfully. Here is app.yaml. On main.py I have "import xlrd". Thank you very much.

application: uploadsample
version: 1
runtime: python27
api_version: 1
threadsafe: yes

handlers:
- url: /favicon\.ico
  static_files: favicon.ico
  upload: favicon\.ico

- url: .*
  script: main.app

libraries:
- name: webapp2
  version: "2.5.1" 
- name: xlrd
  version: "0.7.3"

1条回答
贼婆χ
2楼-- · 2019-03-04 04:25

You can include any pure python third-party libraries with your app that you want. You don't specify them in app.yaml, that's only for third-party libraries that are included by Google on the servers.

xlrd is not "supported" per se, but it should work.

查看更多
登录 后发表回答