gpt4 book ai didi

python - pip install webtest 后 Google App Engine 中出现“没有名为 webtest 的模块”错误

转载 作者:太空宇宙 更新时间:2023-11-03 18:44:17 26 4
gpt4 key购买 nike

当我尝试使用 webtest 在我的开发服务器上运行 gaeunit 时,出现此错误。

    No module named webtest Status: 404 Not Found Content-Type: text/html; charset=utf-8 Cache-Control: no-cache Content-Length: 23 No module named webtest

我正在使用 gae 单元从此 Google App Engine 文档运行测试。

https://code.google.com/p/gaeunit/ https://developers.google.com/appengine/docs/python/tools/handlertesting

当我进行常规单元测试时,测试工作正常。

我必须跳过一个额外的环吗?我使用的是 Ubuntu 13.10

最佳答案

所有未包含在 SDK 中的第 3 方库都必须本地安装在您的项目中。

pip install 将在您的计算机上本地安装,但是 SDK 运行模拟生产运行时的沙箱。所有内容都必须复制或链接到您的项目中,以便可以部署。

如果您进行一些搜索,每隔几天就会询问此类问题(尽管不是特定于您的图书馆)。

您应该阅读文档 - 尤其是有关沙箱的部分

https://developers.google.com/appengine/docs/python/#Python_The_sandbox

关于python - pip install webtest 后 Google App Engine 中出现“没有名为 webtest 的模块”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19901403/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com