找回密码
 会员注册
查看: 46|回复: 0

ModuleNotFoundErrorNomodulenamed‘blinker._saferef‘

[复制链接]

2万

主题

0

回帖

7万

积分

超级版主

积分
73500
发表于 2024-9-3 23:43:15 | 显示全部楼层 |阅读模式
环境描述: 我这里用的Python3.12.2,selenium_wire==5.1.0报错信息:截图代码File"D:\Code\Python\flask-api\.venv\Lib\site-packages\seleniumwire\webdriver.py",line28,infromseleniumwireimportbackend,utilsFile"D:\Code\Python\flask-api\.venv\Lib\site-packages\seleniumwire\backend.py",line4,infromseleniumwire.serverimportMitmProxyFile"D:\Code\Python\flask-api\.venv\Lib\site-packages\seleniumwire\server.py",line5,infromseleniumwire.handlerimportInterceptRequestHandlerFile"D:\Code\Python\flask-api\.venv\Lib\site-packages\seleniumwire\handler.py",line5,infromseleniumwireimportharFile"D:\Code\Python\flask-api\.venv\Lib\site-packages\seleniumwire\har.py",line11,infromseleniumwire.thirdparty.mitmproxyimportconnectionsFile"D:\Code\Python\flask-api\.venv\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\connections.py",line10,infromseleniumwire.thirdparty.mitmproxy.netimporttls,tcpFile"D:\Code\Python\flask-api\.venv\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\net\tls.py",line15,inimportseleniumwire.thirdparty.mitmproxy.optionsFile"D:\Code\Python\flask-api\.venv\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\options.py",line5,infromseleniumwire.thirdparty.mitmproxyimportoptmanagerFile"D:\Code\Python\flask-api\.venv\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\optmanager.py",line9,inimportblinker._saferefModuleNotFoundError:Nomodulenamed'blinker._saferef'解决办法:pipinstallblinker==1.7.0错误分析:selenium-wire缺少blinker==1.7.0库依赖,因此需要安装blinker==1.7.0 参考链接https://github.com/seleniumbase/SeleniumBase/issues/2782
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

QQ|手机版|心飞设计-版权所有:微度网络信息技术服务中心 ( 鲁ICP备17032091号-12 )|网站地图

GMT+8, 2025-1-13 05:54 , Processed in 0.651454 second(s), 25 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表