Traceback (most recent call last):


 "setup.py", line 213, in <module>

zip_safe=False)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup

return distutils.core.setup(**attrs)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/distutils/core.py", line 148, in setup

dist.run_commands()


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/distutils/dist.py", line 966, in run_commands

self.run_command(cmd)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/distutils/dist.py", line 985, in run_command

cmd_obj.run()


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/distutils/command/build.py", line 135, in run

self.run_command(cmd_name)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/distutils/cmd.py", line 313, in run_command

self.distribution.run_command(command)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/distutils/dist.py", line 985, in run_command

cmd_obj.run()


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run

_build_ext.run(self)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run

_build_ext.build_ext.run(self)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/distutils/command/build_ext.py", line 340, in run

self.build_extensions()


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions

build_ext.build_extensions(self)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions

_build_ext.build_ext.build_extensions(self)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions

self._build_extensions_serial()


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial

self.build_extension(ext)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 196, in build_extension

_build_ext.build_extension(self, ext)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension

depends=ext.depends)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 500, in unix_wrap_ninja_compile

with_cuda=with_cuda)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1231, in _write_ninja_file_and_compile_objects

check_compiler_abi_compatibility(compiler)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 265, in check_compiler_abi_compatibility

if not check_compiler_ok_for_platform(compiler):


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 225, in check_compiler_ok_for_platform

which = subprocess.check_output(['which', compiler], stderr=subprocess.STDOUT)


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/subprocess.py", line 411, in check_output

**kwargs).stdout


 "/home/connor/anaconda3/envs/alpha/lib/python3.7/subprocess.py", line 512, in run

output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['which', 'c++']' returned non-zero exit status 1.


Traceback (most recent call last):


 "/home/cl/anaconda3/envs/detectron2/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build

env=env)


 "/home/cl/anaconda3/envs/detectron2/lib/python3.7/subprocess.py", line 512, in run

output=stdout, stderr=stderr)

subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
