ImportError: cannot import name 'BrokenResourceError' from 'anyio' (unknown loca
作者:互联网
版本冲突问题。
安装最新版本的anyio。
我这里是旧版本的3.3.0,重新安装了3.5.0就好了
(base) F:\PyProject\url_checker>pip uninstall anyio
Found existing installation: anyio 3.3.0
Uninstalling anyio-3.3.0:
Would remove:
d:\anaconda3\lib\site-packages\anyio-3.3.0.dist-info\*
d:\anaconda3\lib\site-packages\anyio\abc\_resources.py
d:\anaconda3\lib\site-packages\anyio\abc\_sockets.py
d:\anaconda3\lib\site-packages\anyio\abc\_streams.py
d:\anaconda3\lib\site-packages\anyio\abc\_subprocesses.py
d:\anaconda3\lib\site-packages\anyio\abc\_tasks.py
d:\anaconda3\lib\site-packages\anyio\abc\_testing.py
d:\anaconda3\lib\site-packages\anyio\from_thread.py
d:\anaconda3\lib\site-packages\anyio\lowlevel.py
d:\anaconda3\lib\site-packages\anyio\streams\file.py
d:\anaconda3\lib\site-packages\anyio\to_process.py
d:\anaconda3\lib\site-packages\anyio\to_thread.py
Proceed (Y/n)? Y
Successfully uninstalled anyio-3.3.0
(base) F:\PyProject\url_checker>pip install anyio
Collecting anyio
Downloading anyio-3.5.0-py3-none-any.whl (79 kB)
|████████████████████████████████| 79 kB 182 kB/s
Requirement already satisfied: sniffio>=1.1 in d:\anaconda3\lib\site-packages (from anyio) (1.2.0)
Requirement already satisfied: typing-extensions in d:\anaconda3\lib\site-packages (from anyio) (3.10.0.2)
Requirement already satisfied: idna>=2.8 in d:\anaconda3\lib\site-packages (from anyio) (3.3)
Installing collected packages: anyio
Successfully installed anyio-3.5.0
标签:name,lib,anaconda3,ImportError,py,site,anyio,packages 来源: https://www.cnblogs.com/ercilan/p/15981263.html