小编adi*_*tya的帖子

如何将py_wsgi作为python安装到python安装中?

当我尝试运行以下命令时,我无法在Windows上安装mod_wsgi:

pip install mod_wsgi
Run Code Online (Sandbox Code Playgroud)

它说-

Collecting mod-wsgi
Using cached mod_wsgi-4.4.14.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 20, in <module>
  File "c:\users\aditya\appdata\local\temp\pip-build-ffaywu\mod-wsgi\setup.p
     y", line 139, in <module>
    'missing Apache httpd server packages.' % APXS)
  RuntimeError: The 'apxs' command appears not to be installed or is not 
  executable. Please check the list of prerequisites in the documentation 
  for this package and install any missing Apache httpd server packages.
Run Code Online (Sandbox Code Playgroud)

它缺少apxs,这在我的默认apache安装中不存在.我怎么得到这个apxs?有没有其他方法来安装apache然后mod_wsgi到python安装?

编辑 - …

python mod-wsgi wsgi apache2 apxs2

6
推荐指数
1
解决办法
5977
查看次数

Gmail API - 有没有办法按接收时间排序的顺序列出邮件?

有没有办法使用 Google Mail API 按接收时间的顺序列出 Gmail 邮件?

尽管 API 按时间倒序返回邮件。对于像 10 封邮件这样的非常小的数据集,我发现了差异。

邮件列表API响应:

 {
 "messages": [
  {
   "id": "15afb61b8d220a19",
   "threadId": "15afb61b8d220a19"
  },
  {
   "id": "15afb618f941d73f",
   "threadId": "15afb618f941d73f"
  },
  {
   "id": "15afb6174711c7af",
   "threadId": "15afb6174711c7af"
  },

  ...
  ...
  {
   "id": "159bc283f63d5eb7",
   "threadId": "159bc283f63d5eb7"
  },
  {
   "id": "159bc283dc97cd87",
   "threadId": "159bc283dc97cd87"
  },
  {
   "id": "159bc283d95f097c",
   "threadId": "159bc283d95f097c"
  }
 ],
 "resultSizeEstimate": 9
}
Run Code Online (Sandbox Code Playgroud)

回复的第一条消息(最新):

Id: 15afb61b8d220a19
Date: "Thu, 23 Mar 2017 19:06:08 +0530" 
internalDate: "1490276168000"
Run Code Online (Sandbox Code Playgroud)

列表中的第二封邮件:

Id: 15afb618f941d73f
Date: "Thu, 23 Mar 2017 …
Run Code Online (Sandbox Code Playgroud)

gmail google-api gmail-api

6
推荐指数
1
解决办法
5112
查看次数

标签 统计

apache2 ×1

apxs2 ×1

gmail ×1

gmail-api ×1

google-api ×1

mod-wsgi ×1

python ×1

wsgi ×1