无法在 Windows 10 上安装detectron2

问题描述

我正在使用具有以下配置的 Windows 10 机器 NVIDIA GeForce GTX 1650Ti miniconda3 蟒蛇 3.8 CUDA 11.1 PyTorch 1.8 直接从 PyTorch.org 下载并安装,用于 CUDA-11.1 我尝试根据

中给出的步骤安装detectron2

https://dgmaxime.medium.com/how-to-easily-install-detectron2-on-windows-10-39186139101c

我已经成功地测试了 PyTorch 安装,但是在我进入第 5 步时给出的链接中 那是

pip install -e .

我对detectron2的设置失败,并给了我一个以开头的巨大错误列表

为detectron2运行setup.py develop 错误:命令出错,退出状态为 1: 命令:'C:\Users\user\miniconda3\envs\torch\python.exe' -c 'import io,os,sys,setuptools,tokenize; sys.argv[0] = '"'"'C:\Users\user\detectron2-windows\setup.py'"'"'; file='"'"'C:\Users\user\detectron2-windows\setup.py'"'"';f = getattr(tokenize,'"'"'open'"'" ',open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'" '"');code = f.read().replace('"'"'\r\n'"'"','"'"'\n'"'"');f.close(); exec(compile(code,file,'"'"'exec'"'"'))' develop --no-deps cwd: C:\Users\user\detectron2-windows
完整输出(3245 行): 运行开发 运行 egg_info 写入detectron2.egg-info\PKG-INFO 将dependency_links 写入detectron2.egg-info\dependency_links.txt 将需求写入detectron2.egg-info\requires.txt 将顶级名称写入detectron2.egg-info\top_level.txt 读取清单文件 'detectron2.egg-info\SOURCES.txt'

.... 几乎有数百行。任何帮助将不胜感激。谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)