Closed IvyYZ closed 4 years ago
Have you solved your problem?
sudo apt install python3-dev
ERROR: Can't roll back mmcv-full; was not uninstalled ERROR: Command errored out with exit status 1: /home/iedl/anaconda3/envs/mmlab/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/iedl/z50016523/mmcv/setup.py'"'"'; file='"'"'/home/iedl/z50016523/mmcv/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
sudo apt install python3-dev, the above error is reported. further solution, please.
Is it because I used CUDA10?
You need to ensure that pytorch and mmcv are compiled with the same CUDA.
Great help. when i meet build error(error: command '/usr/bin/nvcc' failed with exit status 1....), reinstall pytorch1.6+10.2 and solve this problem.
Installing collected packages: mmcv Running setup.py install for mmcv ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-dox8j5ph/mmcv/setup.py'"'"'; file='"'"'/tmp/pip-install-dox8j5ph/mmcv/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-ml8m7wim/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6/mmcv cwd: /tmp/pip-install-dox8j5ph/mmcv/ Complete output (265 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/mmcv copying mmcv/init.py -> build/lib.linux-x86_64-3.6/mmcv copying mmcv/version.py -> build/lib.linux-x86_64-3.6/mmcv creating build/lib.linux-x86_64-3.6/mmcv/fileio copying mmcv/fileio/init.py -> build/lib.linux-x86_64-3.6/mmcv/fileio copying mmcv/fileio/file_client.py -> build/lib.linux-x86_64-3.6/mmcv/fileio copying mmcv/fileio/io.py -> build/lib.linux-x86_64-3.6/mmcv/fileio copying mmcv/fileio/parse.py -> build/lib.linux-x86_64-3.6/mmcv/fileio creating build/lib.linux-x86_64-3.6/mmcv/visualization copying mmcv/visualization/init.py -> build/lib.linux-x86_64-3.6/mmcv/visualization copying mmcv/visualization/optflow.py -> build/lib.linux-x86_64-3.6/mmcv/visualization copying mmcv/visualization/image.py -> build/lib.linux-x86_64-3.6/mmcv/visualization copying mmcv/visualization/color.py -> build/lib.linux-x86_64-3.6/mmcv/visualization creating build/lib.linux-x86_64-3.6/mmcv/utils copying mmcv/utils/misc.py -> build/lib.linux-x86_64-3.6/mmcv/utils copying mmcv/utils/progressbar.py -> build/lib.linux-x86_64-3.6/mmcv/utils copying mmcv/utils/init.py -> build/lib.linux-x86_64-3.6/mmcv/utils copying mmcv/utils/path.py -> build/lib.linux-x86_64-3.6/mmcv/utils copying mmcv/utils/timer.py -> build/lib.linux-x86_64-3.6/mmcv/utils copying mmcv/utils/config.py -> build/lib.linux-x86_64-3.6/mmcv/utils copying mmcv/utils/ext_loader.py -> build/lib.linux-x86_64-3.6/mmcv/utils copying mmcv/utils/version_utils.py -> build/lib.linux-x86_64-3.6/mmcv/utils copying mmcv/utils/registry.py -> build/lib.linux-x86_64-3.6/mmcv/utils copying mmcv/utils/logging.py -> build/lib.linux-x86_64-3.6/mmcv/utils copying mmcv/utils/parrots_wrapper.py -> build/lib.linux-x86_64-3.6/mmcv/utils copying mmcv/utils/env.py -> build/lib.linux-x86_64-3.6/mmcv/utils creating build/lib.linux-x86_64-3.6/mmcv/video copying mmcv/video/init.py -> build/lib.linux-x86_64-3.6/mmcv/video copying mmcv/video/optflow.py -> build/lib.linux-x86_64-3.6/mmcv/video copying mmcv/video/io.py -> build/lib.linux-x86_64-3.6/mmcv/video copying mmcv/video/processing.py -> build/lib.linux-x86_64-3.6/mmcv/video creating build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/corner_pool.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/focal_loss.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/deform_conv.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/init.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/deform_roi_pool.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/carafe.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/nms.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/cc_attention.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/psa_mask.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/roi_align.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/sync_bn.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/modulated_deform_conv.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/wrappers.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/bbox.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/saconv.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/roi_pool.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/info.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/point_sample.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/masked_conv.py -> build/lib.linux-x86_64-3.6/mmcv/ops copying mmcv/ops/merge_cells.py -> build/lib.linux-x86_64-3.6/mmcv/ops creating build/lib.linux-x86_64-3.6/mmcv/onnx copying mmcv/onnx/init.py -> build/lib.linux-x86_64-3.6/mmcv/onnx copying mmcv/onnx/symbolic.py -> build/lib.linux-x86_64-3.6/mmcv/onnx creating build/lib.linux-x86_64-3.6/mmcv/cnn copying mmcv/cnn/alexnet.py -> build/lib.linux-x86_64-3.6/mmcv/cnn copying mmcv/cnn/init.py -> build/lib.linux-x86_64-3.6/mmcv/cnn copying mmcv/cnn/vgg.py -> build/lib.linux-x86_64-3.6/mmcv/cnn copying mmcv/cnn/resnet.py -> build/lib.linux-x86_64-3.6/mmcv/cnn creating build/lib.linux-x86_64-3.6/mmcv/parallel copying mmcv/parallel/data_container.py -> build/lib.linux-x86_64-3.6/mmcv/parallel copying mmcv/parallel/init.py -> build/lib.linux-x86_64-3.6/mmcv/parallel copying mmcv/parallel/distributed_deprecated.py -> build/lib.linux-x86_64-3.6/mmcv/parallel copying mmcv/parallel/_functions.py -> build/lib.linux-x86_64-3.6/mmcv/parallel copying mmcv/parallel/distributed.py -> build/lib.linux-x86_64-3.6/mmcv/parallel copying mmcv/parallel/registry.py -> build/lib.linux-x86_64-3.6/mmcv/parallel copying mmcv/parallel/data_parallel.py -> build/lib.linux-x86_64-3.6/mmcv/parallel copying mmcv/parallel/utils.py -> build/lib.linux-x86_64-3.6/mmcv/parallel copying mmcv/parallel/scatter_gather.py -> build/lib.linux-x86_64-3.6/mmcv/parallel copying mmcv/parallel/collate.py -> build/lib.linux-x86_64-3.6/mmcv/parallel creating build/lib.linux-x86_64-3.6/mmcv/runner copying mmcv/runner/base_runner.py -> build/lib.linux-x86_64-3.6/mmcv/runner copying mmcv/runner/dist_utils.py -> build/lib.linux-x86_64-3.6/mmcv/runner copying mmcv/runner/init.py -> build/lib.linux-x86_64-3.6/mmcv/runner copying mmcv/runner/priority.py -> build/lib.linux-x86_64-3.6/mmcv/runner copying mmcv/runner/epoch_based_runner.py -> build/lib.linux-x86_64-3.6/mmcv/runner copying mmcv/runner/utils.py -> build/lib.linux-x86_64-3.6/mmcv/runner copying mmcv/runner/iter_based_runner.py -> build/lib.linux-x86_64-3.6/mmcv/runner copying mmcv/runner/log_buffer.py -> build/lib.linux-x86_64-3.6/mmcv/runner copying mmcv/runner/checkpoint.py -> build/lib.linux-x86_64-3.6/mmcv/runner copying mmcv/runner/fp16_utils.py -> build/lib.linux-x86_64-3.6/mmcv/runner creating build/lib.linux-x86_64-3.6/mmcv/image copying mmcv/image/misc.py -> build/lib.linux-x86_64-3.6/mmcv/image copying mmcv/image/colorspace.py -> build/lib.linux-x86_64-3.6/mmcv/image copying mmcv/image/geometric.py -> build/lib.linux-x86_64-3.6/mmcv/image copying mmcv/image/init.py -> build/lib.linux-x86_64-3.6/mmcv/image copying mmcv/image/io.py -> build/lib.linux-x86_64-3.6/mmcv/image copying mmcv/image/photometric.py -> build/lib.linux-x86_64-3.6/mmcv/image creating build/lib.linux-x86_64-3.6/mmcv/arraymisc copying mmcv/arraymisc/init.py -> build/lib.linux-x86_64-3.6/mmcv/arraymisc copying mmcv/arraymisc/quantization.py -> build/lib.linux-x86_64-3.6/mmcv/arraymisc creating build/lib.linux-x86_64-3.6/mmcv/fileio/handlers copying mmcv/fileio/handlers/init.py -> build/lib.linux-x86_64-3.6/mmcv/fileio/handlers copying mmcv/fileio/handlers/json_handler.py -> build/lib.linux-x86_64-3.6/mmcv/fileio/handlers copying mmcv/fileio/handlers/base.py -> build/lib.linux-x86_64-3.6/mmcv/fileio/handlers copying mmcv/fileio/handlers/pickle_handler.py -> build/lib.linux-x86_64-3.6/mmcv/fileio/handlers copying mmcv/fileio/handlers/yaml_handler.py -> build/lib.linux-x86_64-3.6/mmcv/fileio/handlers creating build/lib.linux-x86_64-3.6/mmcv/video/optflow_warp copying mmcv/video/optflow_warp/init.py -> build/lib.linux-x86_64-3.6/mmcv/video/optflow_warp creating build/lib.linux-x86_64-3.6/mmcv/onnx/onnx_utils copying mmcv/onnx/onnx_utils/init.py -> build/lib.linux-x86_64-3.6/mmcv/onnx/onnx_utils copying mmcv/onnx/onnx_utils/symbolic_helper.py -> build/lib.linux-x86_64-3.6/mmcv/onnx/onnx_utils creating build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/conv_module.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/plugin.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/init.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/non_local.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/conv_ws.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/activation.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/hsigmoid.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/upsample.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/scale.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/context_block.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/generalized_attention.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/registry.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/hswish.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/padding.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/norm.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks copying mmcv/cnn/bricks/conv.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/bricks creating build/lib.linux-x86_64-3.6/mmcv/cnn/utils copying mmcv/cnn/utils/init.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/utils copying mmcv/cnn/utils/weight_init.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/utils copying mmcv/cnn/utils/flops_counter.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/utils copying mmcv/cnn/utils/fuse_conv_bn.py -> build/lib.linux-x86_64-3.6/mmcv/cnn/utils creating build/lib.linux-x86_64-3.6/mmcv/runner/optimizer copying mmcv/runner/optimizer/init.py -> build/lib.linux-x86_64-3.6/mmcv/runner/optimizer copying mmcv/runner/optimizer/builder.py -> build/lib.linux-x86_64-3.6/mmcv/runner/optimizer copying mmcv/runner/optimizer/default_constructor.py -> build/lib.linux-x86_64-3.6/mmcv/runner/optimizer creating build/lib.linux-x86_64-3.6/mmcv/runner/hooks copying mmcv/runner/hooks/init.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks copying mmcv/runner/hooks/sampler_seed.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks copying mmcv/runner/hooks/iter_timer.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks copying mmcv/runner/hooks/momentum_updater.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks copying mmcv/runner/hooks/lr_updater.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks copying mmcv/runner/hooks/hook.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks copying mmcv/runner/hooks/sync_buffer.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks copying mmcv/runner/hooks/memory.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks copying mmcv/runner/hooks/closure.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks copying mmcv/runner/hooks/optimizer.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks copying mmcv/runner/hooks/checkpoint.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks copying mmcv/runner/hooks/ema.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks creating build/lib.linux-x86_64-3.6/mmcv/runner/hooks/logger copying mmcv/runner/hooks/logger/tensorboard.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks/logger copying mmcv/runner/hooks/logger/pavi.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks/logger copying mmcv/runner/hooks/logger/text.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks/logger copying mmcv/runner/hooks/logger/init.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks/logger copying mmcv/runner/hooks/logger/mlflow.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks/logger copying mmcv/runner/hooks/logger/wandb.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks/logger copying mmcv/runner/hooks/logger/base.py -> build/lib.linux-x86_64-3.6/mmcv/runner/hooks/logger running egg_info writing mmcv.egg-info/PKG-INFO writing dependency_links to mmcv.egg-info/dependency_links.txt writing requirements to mmcv.egg-info/requires.txt writing top-level names to mmcv.egg-info/top_level.txt reading manifest file 'mmcv.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'mmcv.egg-info/SOURCES.txt' creating build/lib.linux-x86_64-3.6/mmcv/model_zoo copying mmcv/model_zoo/deprecated.json -> build/lib.linux-x86_64-3.6/mmcv/model_zoo copying mmcv/model_zoo/open_mmlab.json -> build/lib.linux-x86_64-3.6/mmcv/model_zoo creating build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/bbox_overlaps_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/carafe_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/carafe_naive_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/cc_attention_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/common_cuda_helper.hpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/deform_conv_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/deform_roi_pool_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/masked_conv2d_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/modulated_deform_conv_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/nms_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/parrots_cpp_helper.hpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/parrots_cuda_helper.hpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/parrots_cudawarpfunction.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/psamask_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/pytorch_cpp_helper.hpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/pytorch_cuda_helper.hpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/roi_align_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/roi_pool_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/sigmoid_focal_loss_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/softmax_focal_loss_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc copying mmcv/ops/csrc/sync_bn_cuda_kernel.cuh -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc creating build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/bbox_overlaps.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/bbox_overlaps_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/carafe.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/carafe_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/carafe_naive.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/carafe_naive_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/cc_attention.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/cc_attention_cuda_kernel.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/corner_pool.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/deform_conv.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/deform_conv_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/deform_roi_pool.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/deform_roi_pool_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/focal_loss.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/focal_loss_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/masked_conv2d.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/masked_conv2d_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/modulated_deform_conv.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/modulated_deform_conv_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/nms.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/nms_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/parrots_cpp_helper.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/parrots_cuda_helper.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/psamask.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/psamask_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/roi_align.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/roi_align_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/roi_pool.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/roi_pool_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/sync_bn.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots copying mmcv/ops/csrc/parrots/sync_bn_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/parrots creating build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/bbox_overlaps.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/bbox_overlaps_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/carafe.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/carafe_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/carafe_naive.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/carafe_naive_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/cc_attention.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/cc_attention_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/corner_pool.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/deform_conv.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/deform_conv_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/deform_roi_pool.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/deform_roi_pool_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/focal_loss.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/focal_loss_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/info.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/masked_conv2d.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/masked_conv2d_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/modulated_deform_conv.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/modulated_deform_conv_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/nms.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/nms_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/psamask.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/psamask_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/pybind.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/roi_align.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/roi_align_cpu.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/roi_align_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/roi_pool.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/roi_pool_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/sync_bn.cpp -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/ops/csrc/pytorch/sync_bn_cuda.cu -> build/lib.linux-x86_64-3.6/mmcv/ops/csrc/pytorch copying mmcv/video/optflow_warp/flow_warp.hpp -> build/lib.linux-x86_64-3.6/mmcv/video/optflow_warp copying mmcv/video/optflow_warp/flow_warp_module.pyx -> build/lib.linux-x86_64-3.6/mmcv/video/optflow_warp running build_ext building 'mmcv._flow_warp_ext' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/mmcv creating build/temp.linux-x86_64-3.6/mmcv/video creating build/temp.linux-x86_64-3.6/mmcv/video/optflow_warp x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./mmcv/video/optflow_warp -I/usr/local/lib/python3.6/dist-packages/numpy/core/include -I/usr/include/python3.6m -c ./mmcv/video/optflow_warp/flow_warp_module.cpp -o build/temp.linux-x86_64-3.6/./mmcv/video/optflow_warp/flow_warp_module.o -DTORCH_EXTENSION_NAME=mmcv._flow_warp_ext -std=c++11 ./mmcv/video/optflow_warp/flow_warp_module.cpp:27:20: fatal error: Python.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
ERROR: Command errored out with exit status 1: /usr/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-dox8j5ph/mmcv/setup.py'"'"'; file='"'"'/tmp/pip-install-dox8j5ph/mmcv/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-ml8m7wim/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6/mmcv Check the logs for full command output.