logan-zou / Chat_with_Datawhale_langchain

73 stars 6 forks source link

是否支持Windows系统? #2

Open TonyWang972 opened 2 months ago

TonyWang972 commented 2 months ago

使用windows系统进行pip安装包时会报以下的错误,似乎是uvloop这个包不支持Windows系统,与文档中系统匹配描述不一致 × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [15 lines of output] Traceback (most recent call last): File "C:\Users\Lenovo\.conda\envs\llm-universe\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module> main() File "C:\Users\Lenovo\.conda\envs\llm-universe\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "C:\Users\Lenovo\.conda\envs\llm-universe\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "C:\Users\Lenovo\AppData\Local\Temp\pip-build-env-1b50t8y6\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) File "C:\Users\Lenovo\AppData\Local\Temp\pip-build-env-1b50t8y6\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires self.run_setup() File "C:\Users\Lenovo\AppData\Local\Temp\pip-build-env-1b50t8y6\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup exec(code, locals()) File "<string>", line 8, in <module> RuntimeError: uvloop does not support Windows at the moment [end of output]

SeanFeng91 commented 2 months ago

卡在这里了,遇到了同样的问题,前面应该还有一个wheel问题。然后跳过这里运行api还提示ModuleNotFoundError: No module named 'fastapi'

BenWyy commented 2 months ago

windows系统没有uvloop这个包的,可以尝试在requirements.txt删除这个包。 linux系统也有问题,requirements.txt给出的langchain相关的依赖版本似乎不正确,无法编译成功。

maoyaozong commented 1 month ago

有跑成功的同学吗