follow this discussion carefully : yml file isn't working(CondaEnvException: Pip failed) · Issue #2 · markstrefford/running-detectron2-on-windows-wsl2-rtx30xx · GitHub 267
you will get to know how i installed detectron2 in windows successfully using rtx 3060ti,thanks