facebookresearch / facebookresearch/SlowFast

Couldnt install detectron2

Open
#717 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

My virtual env has :

python 3.8
pytorch 1.10
cuda 10.2

When i try to build detectron2, im getting this error

```
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
```

When I use this command

```
git clone https://github.com/facebookresearch/detectron2 detectron2_repo
pip install -e detectron2_repo
```

I get this error,

```
subprocess.run(
File "/home2/mukilan/anaconda3/envs/sf/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

```
I have set the correct cuda arch using these commands

```
python -c "import torch; print(torch.cuda.get_device_capability())"
export TORCH_CUDA_ARCH_LIST="7.5"
```

Please help me figure what I am doing wrong here. Thanks !!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.