question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation failed with RTX3090+PyTorch1.7.1+CUDA11.0

See original GitHub issue

Really need help for installation! Thanks!

My env:

  • ubuntu18.04
  • RTX3090
  • Python3.7
  • GCC 7.5.0
  • CUDA11.0
  • PyTorch1.7.1
  • cudatoolkit11.0

Tried to install mmcv-1.2.7 Here’s the error info:

`(/home/zhz/anaconda3/envs/mmdec) zhz@lab:~/data/codes/mmcv$ MMCV_WITH_OPS=1 pip install -vv -e . Using pip 21.0.1 from /home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/pip (python 3.7) Non-user install because site-packages writeable Created temporary directory: /tmp/pip-ephem-wheel-cache-xj_ztalv Created temporary directory: /tmp/pip-req-tracker-twzbt1hg Initialized build tracking at /tmp/pip-req-tracker-twzbt1hg Created build tracker: /tmp/pip-req-tracker-twzbt1hg Entered build tracker: /tmp/pip-req-tracker-twzbt1hg Created temporary directory: /tmp/pip-install-yx152mjd Obtaining file:///home/zhz/data/codes/mmcv Added file:///home/zhz/data/codes/mmcv to build tracker β€˜/tmp/pip-req-tracker-twzbt1hg’ Running setup.py (path:/home/zhz/data/codes/mmcv/setup.py) egg_info for package from file:///home/zhz/data/codes/mmcv Created temporary directory: /tmp/pip-pip-egg-info-lml6k8cv Running command python setup.py egg_info running egg_info creating /tmp/pip-pip-egg-info-lml6k8cv/mmcv_full.egg-info writing /tmp/pip-pip-egg-info-lml6k8cv/mmcv_full.egg-info/PKG-INFO writing dependency_links to /tmp/pip-pip-egg-info-lml6k8cv/mmcv_full.egg-info/dependency_links.txt writing requirements to /tmp/pip-pip-egg-info-lml6k8cv/mmcv_full.egg-info/requires.txt writing top-level names to /tmp/pip-pip-egg-info-lml6k8cv/mmcv_full.egg-info/top_level.txt writing manifest file β€˜/tmp/pip-pip-egg-info-lml6k8cv/mmcv_full.egg-info/SOURCES.txt’ reading manifest file β€˜/tmp/pip-pip-egg-info-lml6k8cv/mmcv_full.egg-info/SOURCES.txt’ reading manifest template β€˜MANIFEST.in’ writing manifest file β€˜/tmp/pip-pip-egg-info-lml6k8cv/mmcv_full.egg-info/SOURCES.txt’ Source in /home/zhz/data/codes/mmcv has version 1.2.7, which satisfies requirement mmcv-full==1.2.7 from file:///home/zhz/data/codes/mmcv Removed mmcv-full==1.2.7 from file:///home/zhz/data/codes/mmcv from build tracker β€˜/tmp/pip-req-tracker-twzbt1hg’ Requirement already satisfied: addict in /home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages (from mmcv-full==1.2.7) (2.4.0) Requirement already satisfied: numpy in /home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages (from mmcv-full==1.2.7) (1.19.2) Requirement already satisfied: Pillow in /home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages (from mmcv-full==1.2.7) (8.1.1) Requirement already satisfied: pyyaml in /home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages (from mmcv-full==1.2.7) (5.4.1) Requirement already satisfied: yapf in /home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages (from mmcv-full==1.2.7) (0.30.0) Created temporary directory: /tmp/pip-unpack-6ve63wx_ Installing collected packages: mmcv-full Running setup.py develop for mmcv-full Running command /home/zhz/anaconda3/envs/mmdec/bin/python -c β€˜import sys, setuptools, tokenize; sys.argv[0] = β€˜"’"’/home/zhz/data/codes/mmcv/setup.pyβ€™β€œ'β€β€˜; file=β€™β€œ'β€β€˜/home/zhz/data/codes/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 running develop running egg_info writing mmcv_full.egg-info/PKG-INFO writing dependency_links to mmcv_full.egg-info/dependency_links.txt writing requirements to mmcv_full.egg-info/requires.txt writing top-level names to mmcv_full.egg-info/top_level.txt reading manifest file β€˜mmcv_full.egg-info/SOURCES.txt’ reading manifest template β€˜MANIFEST.in’ writing manifest file β€˜mmcv_full.egg-info/SOURCES.txt’ running build_ext building 'mmcv.ext’ extension Emitting ninja build file /home/zhz/data/codes/mmcv/build/temp.linux-x86_64-3.7/build.ninja… Compiling objects… Using envvar MAX_JOBS (4) as the number of workers… [1/38] :/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/zhz/data/codes/mmcv/mmcv/ops/csrc -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/TH -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/zhz/anaconda3/envs/mmdec/include/python3.7m -c -c /home/zhz/data/codes/mmcv/mmcv/ops/csrc/pytorch/bbox_overlaps_cuda.cu -o /home/zhz/data/codes/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/bbox_overlaps_cuda.o -D__CUDA_NO_HALF_OPERATORS_ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options β€˜β€™β€β€˜"’-fPICβ€™β€œ'β€β€˜β€™ -DTORCH_API_INCLUDE_EXTENSION_H β€˜-DPYBIND11_COMPILER_TYPE=β€œgcc"’ '-DPYBIND11_STDLIB="libstdcpp"’ '-DPYBIND11_BUILD_ABI="cxxabi1011"’ -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/zhz/data/codes/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/bbox_overlaps_cuda.o :/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/zhz/data/codes/mmcv/mmcv/ops/csrc -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/TH -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/zhz/anaconda3/envs/mmdec/include/python3.7m -c -c /home/zhz/data/codes/mmcv/mmcv/ops/csrc/pytorch/bbox_overlaps_cuda.cu -o /home/zhz/data/codes/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/bbox_overlaps_cuda.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options β€˜β€™β€β€™β€œβ€˜-fPICβ€™β€β€˜"’’ -DTORCH_API_INCLUDE_EXTENSION_H β€˜-DPYBIND11_COMPILER_TYPE=β€œgcc"’ '-DPYBIND11_STDLIB="libstdcpp"’ '-DPYBIND11_BUILD_ABI="cxxabi1011"’ -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14 /bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found [2/38] :/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/zhz/data/codes/mmcv/mmcv/ops/csrc -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/TH -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/zhz/anaconda3/envs/mmdec/include/python3.7m -c -c /home/zhz/data/codes/mmcv/mmcv/ops/csrc/pytorch/focal_loss_cuda.cu -o /home/zhz/data/codes/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/focal_loss_cuda.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options β€˜β€™β€β€™β€œβ€˜-fPICβ€™β€β€˜"’’ -DTORCH_API_INCLUDE_EXTENSION_H β€˜-DPYBIND11_COMPILER_TYPE=β€œgcc"’ '-DPYBIND11_STDLIB="libstdcpp"’ '-DPYBIND11_BUILD_ABI="cxxabi1011"’ -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/zhz/data/codes/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/focal_loss_cuda.o :/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/zhz/data/codes/mmcv/mmcv/ops/csrc -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/TH -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/zhz/anaconda3/envs/mmdec/include/python3.7m -c -c /home/zhz/data/codes/mmcv/mmcv/ops/csrc/pytorch/focal_loss_cuda.cu -o /home/zhz/data/codes/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/focal_loss_cuda.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options β€˜β€™β€β€™β€œβ€˜-fPICβ€™β€β€˜"’’ -DTORCH_API_INCLUDE_EXTENSION_H β€˜-DPYBIND11_COMPILER_TYPE=β€œgcc"’ '-DPYBIND11_STDLIB="libstdcpp"’ '-DPYBIND11_BUILD_ABI="cxxabi1011"’ -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14 /bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found [3/38] :/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/zhz/data/codes/mmcv/mmcv/ops/csrc -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/TH -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/zhz/anaconda3/envs/mmdec/include/python3.7m -c -c /home/zhz/data/codes/mmcv/mmcv/ops/csrc/pytorch/roi_pool_cuda.cu -o /home/zhz/data/codes/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/roi_pool_cuda.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options β€˜β€™β€β€™β€œβ€˜-fPICβ€™β€β€˜"’’ -DTORCH_API_INCLUDE_EXTENSION_H β€˜-DPYBIND11_COMPILER_TYPE=β€œgcc"’ '-DPYBIND11_STDLIB="libstdcpp"’ '-DPYBIND11_BUILD_ABI="cxxabi1011"’ -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/zhz/data/codes/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/roi_pool_cuda.o :/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/zhz/data/codes/mmcv/mmcv/ops/csrc -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/TH -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/zhz/anaconda3/envs/mmdec/include/python3.7m -c -c /home/zhz/data/codes/mmcv/mmcv/ops/csrc/pytorch/roi_pool_cuda.cu -o /home/zhz/data/codes/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/roi_pool_cuda.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options β€˜β€™β€β€™β€œβ€˜-fPICβ€™β€β€˜"’’ -DTORCH_API_INCLUDE_EXTENSION_H β€˜-DPYBIND11_COMPILER_TYPE=β€œgcc"’ '-DPYBIND11_STDLIB="libstdcpp"’ '-DPYBIND11_BUILD_ABI="cxxabi1011"’ -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14 /bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found [4/38] :/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/zhz/data/codes/mmcv/mmcv/ops/csrc -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/TH -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/zhz/anaconda3/envs/mmdec/include/python3.7m -c -c /home/zhz/data/codes/mmcv/mmcv/ops/csrc/pytorch/nms_rotated_cuda.cu -o /home/zhz/data/codes/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/nms_rotated_cuda.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options β€˜β€™β€β€™β€œβ€˜-fPICβ€™β€β€˜"’’ -DTORCH_API_INCLUDE_EXTENSION_H β€˜-DPYBIND11_COMPILER_TYPE=β€œgcc"’ '-DPYBIND11_STDLIB="libstdcpp"’ '-DPYBIND11_BUILD_ABI="cxxabi1011"’ -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/zhz/data/codes/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/nms_rotated_cuda.o :/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/zhz/data/codes/mmcv/mmcv/ops/csrc -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/TH -I/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/zhz/anaconda3/envs/mmdec/include/python3.7m -c -c /home/zhz/data/codes/mmcv/mmcv/ops/csrc/pytorch/nms_rotated_cuda.cu -o /home/zhz/data/codes/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/nms_rotated_cuda.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options β€˜β€™β€β€™β€œβ€˜-fPICβ€™β€β€˜"’’ -DTORCH_API_INCLUDE_EXTENSION_H β€˜-DPYBIND11_COMPILER_TYPE=β€œ_gcc”’ β€˜-DPYBIND11_STDLIB=β€œ_libstdcpp”’ β€˜-DPYBIND11_BUILD_ABI=β€œ_cxxabi1011”’ -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14 /bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found ninja: build stopped: subcommand failed. Traceback (most recent call last): File β€œ/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/utils/cpp_extension.py”, line 1539, in _run_ninja_build env=env) File β€œ/home/zhz/anaconda3/envs/mmdec/lib/python3.7/subprocess.py”, line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command β€˜[β€˜ninja’, β€˜-v’, β€˜-j’, β€˜4’]’ returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/zhz/data/codes/mmcv/setup.py", line 316, in <module>
    zip_safe=False)
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
    self.install_for_development()
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/setuptools/command/develop.py", line 136, in install_for_development
    self.run_command('build_ext')
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
    _build_ext.run(self)
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions
    build_ext.build_extensions(self)
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
    _build_ext.build_extension(self, ext)
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
    depends=ext.depends)
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 500, in unix_wrap_ninja_compile
    with_cuda=with_cuda)
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1255, in _write_ninja_file_and_compile_objects
    error_prefix='Error compiling objects for extension')
  File "/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension

ERROR: Command errored out with exit status 1: /home/zhz/anaconda3/envs/mmdec/bin/python -c β€˜import sys, setuptools, tokenize; sys.argv[0] = β€˜"’"’/home/zhz/data/codes/mmcv/setup.pyβ€™β€œ'β€β€˜; file=β€™β€œ'β€β€˜/home/zhz/data/codes/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. Exception information: Traceback (most recent call last): File β€œ/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/pip/_internal/cli/base_command.py”, line 189, in _main status = self.run(options, args) File β€œ/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/pip/_internal/cli/req_command.py”, line 178, in wrapper return func(self, options, args) File β€œ/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/pip/_internal/commands/install.py”, line 400, in run pycompile=options.compile, File β€œ/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/pip/_internal/req/init.py”, line 88, in install_given_reqs pycompile=pycompile, File β€œ/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/pip/_internal/req/req_install.py”, line 774, in install unpacked_source_directory=self.unpacked_source_directory, File β€œ/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/pip/_internal/operations/install/editable_legacy.py”, line 51, in install_editable cwd=unpacked_source_directory, File β€œ/home/zhz/anaconda3/envs/mmdec/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py”, line 258, in call_subprocess raise InstallationSubprocessError(proc.returncode, command_desc) pip._internal.exceptions.InstallationSubprocessError: Command errored out with exit status 1: /home/zhz/anaconda3/envs/mmdec/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = 'β€β€˜"’/home/zhz/data/codes/mmcv/setup.pyβ€™β€œ'β€β€˜; file=β€™β€œ'β€β€˜/home/zhz/data/codes/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. Removed build tracker: β€˜/tmp/pip-req-tracker-twzbt1hg’ `

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
MaxLin86commented, Apr 20, 2021

try to run python -c "import torch;print(torch.max(torch.rand((30,30),device='cuda')))"

print result: tensor(0.9998, device=β€˜cuda:0’)

and the torch environment is tested to be OK.

the RuntimeError I just mentioned was occured in NMSop.

0reactions
MaxLin86commented, Apr 20, 2021

@hhaAndroid

The problem was solved. Finally env: RTX3090 + CUDA11.1 + conda virtual env python 3.6.13 + torch1.7.1+cu110 + β€˜pip install mmcv-full==1.3.1 -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.7.0/index.html’

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pytorch with CUDA local installation fails on Ubuntu
1) I am installing in my conda environment is different from the one installed as system wide level (which is shown by the...
Read more >
WIndows 10 CUDA installation failure solved
If the installation of CUDA is failing on Windows 10 its most likely failing because you have GeForce Experience installed.
Read more >
pytorch/pytorch:1.7.0-cuda11.0-cudnn8-devel | Docker Hub
RUN /bin/sh -c apt-get update. 1.06 GB. 19. LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com>. 0 B. 20. ENV NCCL_VERSION=2.7.8.
Read more >
Cuda not compatible with PyTorch installation error while ...
Cuda not compatible with PyTorch installation error while training the model ... Neither did conda install pytorch torchvision torchaudioΒ ...
Read more >
Error installing with Python 3.8 and CUDA 11.5
I am trying to install PyTorch with Python 3.8 and CUDA 11.5 and I am getting following error for torchaudio. ERROR: Could not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found