把 blinker 模块降级到 1.8.0以下就好了
pip install blinker==1.7.0
参考 点击查看
Out of nowhere all of our Python projects that utilize selenium-wire suddenly stopped working when redeployed. It turns out that selenium-wire is no longer maintained as of January 2024 and the project depends on package blinker, specifically file blinker._saferef that is no longer available in latest blinker versions 1.8.0 and 1.8.1.
The solution is to add direct dependency on blinker<1.8.0 into your project in order to prevent selenium-wire from automatically downloading the latest blinker version.