在我的应用引擎应用程序中,我想使用备用正则表达式模块 pypi/regex
而不是默认的 re
模块。首先,这可能吗?如果是,我该怎么做?
我已经在我的开发环境中安装了regex
模块并进行了测试。它在 python shell 中运行良好。为了使其成为我的应用程序引擎项目的一部分,我将以下文件复制到我的项目文件夹中。
lib\
regex.py
_regex_core.py
但是,我在我的应用程序中收到以下错误。
No module named lib._regex
复制_regex.so
也没有帮助。
最佳答案
不,这是不可能的。
参见documentation :
You can add any third-party library to your application, as long as it is implemented in "pure Python" (no C extensions) and otherwise functions in the App Engine runtime environment.
关于python - 如何在 App Engine 中使用 pypi/regex 模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33072387/