gpt4 book ai didi

python-3.x - pkg_resources.DistributionNotFound : The 'uvloop>=0.14.0' distribution was not found and is required by uvicorn

转载 作者:行者123 更新时间:2023-12-05 08:04:20 71 4
gpt4 key购买 nike

File "/usr/bin/uvicorn", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3254, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3237, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3266, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 584, in _build_master
ws.require(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 901, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 787, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'uvloop>=0.14.0' distribution was not found and is required by uvicorn

最佳答案

安装这个包 fastapi-socketio。

你的错误消失了。

这是 fastapi 运行的基本包要求

bidict==0.21.3
click==7.1.2
fastapi==0.68.1
fastapi-socketio==0.0.8
h11==0.9.0
httptools==0.1.2
pydantic==1.8.2
python-engineio==4.2.1
python-socketio==5.4.0
starlette==0.14.2
typing-extensions==3.10.0.2
uvicorn==0.11.5
uvloop==0.16.0
websockets==8.1

关于python-3.x - pkg_resources.DistributionNotFound : The 'uvloop>=0.14.0' distribution was not found and is required by uvicorn,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69266773/

71 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com