python3.9 里面 lxml etree不能用

python3.9 里面 lxml etree不能用

File "/code/HelloWorld/urls.py", line 19, in import index.views File "/code/index/views.py", line 2, in from index.saml import saml2 File "/code/index/saml.py", line 6, in from lxml import html File "/code/lxml/html/ init.py", line 53, in from .. import etree ImportError: cannot import name 'etree' from 'lxml' (/code/lxml/ init.py) c-63118ba1-1e85b0f7d691462cb1d02022-09-02 12:50:44FC Invoke End RequestId: 74201fba-872e-436a-a186-b897444910aa

展开
收起
云上静思 2022-09-02 13:09:54 567 分享 版权
1 条回答
写回答
取消 提交回答
  • 用函数计算一样的环境进行构建,或者用s build use-docker。参考这个文档:

    https://docs.serverless-devs.com/fc/command/build#%E6%93%8D%E4%BD%9C%E6%A1%88%E4%BE%8B

    此答案来自钉钉“Serverless 开发者技术学习群”

    2022-09-02 15:21:17
    赞同 展开评论

快速交付实现商业价值。

收录在圈子:
+ 订阅
专注 Serverless、微服务、函数计算、Serverless 应用引擎、云原生技术
还有其他疑问?
咨询AI助理