在我的 App Engine 应用程序中,我想使用备用正则表达式模块 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.
