X-D-Lab / LangChain-ChatGLM-Webui

基于LangChain和ChatGLM-6B等系列LLM的针对本地知识库的自动问答
Apache License 2.0
3.15k stars 475 forks source link

ROIAlignRotated_cpu.cpp : fatal error C1083: 无法打开编译器生成的文件 #32

Closed liningwangyi closed 1 year ago

liningwangyi commented 1 year ago

执行 pip install -r requirement.txt

报错: \AppData\Local\Temp\pip-install-pzphnpyf\detectron2_342601ed2f124809b3a4ec0ad331962a\detectron2\layers\csrc\ROIAlignRotated\ROIAlignRotated_cpu.cpp : fatal error C1083: 无法打开编译器生成的文件: “▒\x80\x9d: Invalid argument error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for detectron2 Running setup.py clean for detectron2 Failed to build detectron2 ERROR: Could not build wheels for detectron2, which is required to install pyproject.toml-based projects

thomas-yanxin commented 1 year ago

detectron2的安装确实比较麻烦,其只用于PDF上,如果不用PDF可以注释掉它不安装。当然也可以Google或者百度搜一下解决方案。