You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
答:使用命令行安装,但是一直出现问题cannot import name 'etree' from 'lxml'
$ python3 -m weibo_spider
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/weibo_spider/main.py", line 6, in
from weibo_spider.spider import main
File "C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/weibo_spider/spider.py", line 19, in
from .parser import AlbumParser, IndexParser, PageParser, PhotoParser
File "C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/weibo_spider/parser/init.py", line 1, in
from .index_parser import IndexParser
File "C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/weibo_spider/parser/index_parser.py", line 3, in
from .info_parser import InfoParser
File "C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/weibo_spider/parser/info_parser.py", line 6, in
from .util import handle_html
File "C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/weibo_spider/parser/util.py", line 7, in
from lxml import etree
ImportError: cannot import name 'etree' from 'lxml' (C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/lxml/init.py)
The text was updated successfully, but these errors were encountered:
感谢您申报bug,为了表示感谢,如果bug确实存在,您将出现在本项目的贡献者列表里;如果您不但发现了bug,还提供了很好的解决方案,我们会邀请您以pull request的方式成为本项目的代码贡献者(Contributor);如果您多次提供很好的pull request,我们将邀请您成为本项目的协助者(Collaborator)。当然,是否提供解决方按都是自愿的。不管是否是真正的bug、是否提供解决方案,我们都感谢您对本项目的帮助。
答:全部
答:是
答:还没能使用程序
答:
答:
答:使用命令行安装,但是一直出现问题cannot import name 'etree' from 'lxml'
$ python3 -m weibo_spider
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/weibo_spider/main.py", line 6, in
from weibo_spider.spider import main
File "C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/weibo_spider/spider.py", line 19, in
from .parser import AlbumParser, IndexParser, PageParser, PhotoParser
File "C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/weibo_spider/parser/init.py", line 1, in
from .index_parser import IndexParser
File "C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/weibo_spider/parser/index_parser.py", line 3, in
from .info_parser import InfoParser
File "C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/weibo_spider/parser/info_parser.py", line 6, in
from .util import handle_html
File "C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/weibo_spider/parser/util.py", line 7, in
from lxml import etree
ImportError: cannot import name 'etree' from 'lxml' (C:/Scoop/apps/msys2/2024-07-27/ucrt64/lib/python3.11/site-packages/lxml/init.py)
The text was updated successfully, but these errors were encountered: