python报错,请问你们lxml版本是多少?
Closed this issue · 3 comments
zz@iStoreOS:/AutoFilm-1.0.1# python /mnt/-1/AutoFilm-1.0.1/main.py
Traceback (most recent call last):
File "/mnt/-1/AutoFilm-1.0.1/main.py", line 5, in
import autofilm
File "/mnt/-1/AutoFilm-1.0.1/autofilm.py", line 13, in
from webdav3.client import Client
File "/usr/lib/python3.10/site-packages/webdav3/client.py", line 12, in
import lxml.etree as etree
ModuleNotFoundError: No module named 'lxml.etree'
zz@iStoreOS:/AutoFilm-1.0.1# pip show lxml
Name: lxml
Version: 5.2.2
Summary: Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
Home-page: https://lxml.de/
Author: lxml dev team
Author-email: lxml-dev@lxml.de
License: BSD-3-Clause
Location: /usr/lib/python3.10/site-packages
Requires:
Required-by: webdavclient3
root@iStoreOS:/mnt/-1/AutoFilm-1.0.1#
未安装webdavclient3
我看了我的环境是lxml版本是4.9.4,可以尝试切换,如果还是不行建议使用使用虚拟环境或者docker