lucasjinreal / yolov7_d2

πŸ”₯πŸ”₯πŸ”₯πŸ”₯ (Earlier YOLOv7 not official one) YOLO with Transformers and Instance Segmentation, with TensorRT acceleration! πŸ”₯πŸ”₯πŸ”₯
GNU General Public License v3.0
3.12k stars 480 forks source link

note: This error originates from a subprocess, and is likely not a problem with pip. #110

Closed Chriost closed 2 years ago

Chriost commented 2 years ago

(yolov7) [CaiYingJie@localhost yolov7-main]$ python -m pip install -e detectron2 Obtaining file:///home/CaiYingJie/workshop/yolov7-main/detectron2 Preparing metadata (setup.py) ... done Requirement already satisfied: Pillow>=7.1 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (9.2.0) Requirement already satisfied: matplotlib in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (3.5.2) Requirement already satisfied: pycocotools>=2.0.2 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (2.0.4) Requirement already satisfied: termcolor>=1.1 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (1.1.0) Requirement already satisfied: yacs>=0.1.8 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (0.1.8) Requirement already satisfied: tabulate in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (0.8.10) Requirement already satisfied: cloudpickle in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (2.1.0) Requirement already satisfied: tqdm>4.29.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (4.64.0) Requirement already satisfied: tensorboard in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (2.9.1) Requirement already satisfied: fvcore<0.1.6,>=0.1.5 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (0.1.5.post20220512) Requirement already satisfied: iopath<0.1.10,>=0.1.7 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (0.1.9) Requirement already satisfied: future in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (0.18.2) Requirement already satisfied: pydot in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (1.4.2) Requirement already satisfied: omegaconf>=2.1 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (2.2.2) Requirement already satisfied: hydra-core>=1.1 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (1.2.0) Requirement already satisfied: black==22.3.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (22.3.0) Requirement already satisfied: timm in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (0.6.5) Requirement already satisfied: fairscale in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (0.4.6) Requirement already satisfied: packaging in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from detectron2==0.6) (21.3) Requirement already satisfied: platformdirs>=2 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from black==22.3.0->detectron2==0.6) (2.5.2) Requirement already satisfied: typing-extensions>=3.10.0.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from black==22.3.0->detectron2==0.6) (4.3.0) Requirement already satisfied: mypy-extensions>=0.4.3 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from black==22.3.0->detectron2==0.6) (0.4.3) Requirement already satisfied: click>=8.0.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from black==22.3.0->detectron2==0.6) (8.1.3) Requirement already satisfied: pathspec>=0.9.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from black==22.3.0->detectron2==0.6) (0.9.0) Requirement already satisfied: tomli>=1.1.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from black==22.3.0->detectron2==0.6) (2.0.1) Requirement already satisfied: pyyaml>=5.1 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from fvcore<0.1.6,>=0.1.5->detectron2==0.6) (6.0) Requirement already satisfied: numpy in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from fvcore<0.1.6,>=0.1.5->detectron2==0.6) (1.23.1) Requirement already satisfied: antlr4-python3-runtime==4.9.* in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from hydra-core>=1.1->detectron2==0.6) (4.9.3) Requirement already satisfied: importlib-resources in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from hydra-core>=1.1->detectron2==0.6) (5.8.0) Requirement already satisfied: portalocker in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from iopath<0.1.10,>=0.1.7->detectron2==0.6) (2.5.1) Requirement already satisfied: pyparsing>=2.2.1 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from matplotlib->detectron2==0.6) (3.0.9) Requirement already satisfied: fonttools>=4.22.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from matplotlib->detectron2==0.6) (4.34.4) Requirement already satisfied: cycler>=0.10 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from matplotlib->detectron2==0.6) (0.11.0) Requirement already satisfied: python-dateutil>=2.7 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from matplotlib->detectron2==0.6) (2.8.2) Requirement already satisfied: kiwisolver>=1.0.1 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from matplotlib->detectron2==0.6) (1.4.4) Requirement already satisfied: torch>=1.8.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from fairscale->detectron2==0.6) (1.12.0) Requirement already satisfied: absl-py>=0.4 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from tensorboard->detectron2==0.6) (1.1.0) Requirement already satisfied: setuptools>=41.0.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from tensorboard->detectron2==0.6) (63.1.0) Requirement already satisfied: grpcio>=1.24.3 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from tensorboard->detectron2==0.6) (1.47.0) Requirement already satisfied: google-auth<3,>=1.6.3 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from tensorboard->detectron2==0.6) (2.9.1) Requirement already satisfied: wheel>=0.26 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from tensorboard->detectron2==0.6) (0.37.1) Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from tensorboard->detectron2==0.6) (0.4.6) Requirement already satisfied: markdown>=2.6.8 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from tensorboard->detectron2==0.6) (3.3.7) Requirement already satisfied: requests<3,>=2.21.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from tensorboard->detectron2==0.6) (2.28.1) Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from tensorboard->detectron2==0.6) (1.8.1) Requirement already satisfied: werkzeug>=1.0.1 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from tensorboard->detectron2==0.6) (2.1.2) Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from tensorboard->detectron2==0.6) (0.6.1) Requirement already satisfied: protobuf<3.20,>=3.9.2 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from tensorboard->detectron2==0.6) (3.19.4) Requirement already satisfied: torchvision in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from timm->detectron2==0.6) (0.13.0) Requirement already satisfied: rsa<5,>=3.1.4 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (4.8) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (0.2.8) Requirement already satisfied: cachetools<6.0,>=2.0.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (5.2.0) Requirement already satisfied: six>=1.9.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (1.16.0) Requirement already satisfied: requests-oauthlib>=0.7.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard->detectron2==0.6) (1.3.1) Requirement already satisfied: importlib-metadata>=4.4 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from markdown>=2.6.8->tensorboard->detectron2==0.6) (4.12.0) Requirement already satisfied: charset-normalizer<3,>=2 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (2.1.0) Requirement already satisfied: idna<4,>=2.5 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (3.3) Requirement already satisfied: certifi>=2017.4.17 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (2022.6.15) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (1.26.10) Requirement already satisfied: zipp>=3.1.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from importlib-resources->hydra-core>=1.1->detectron2==0.6) (3.8.1) Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (0.4.8) Requirement already satisfied: oauthlib>=3.0.0 in /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard->detectron2==0.6) (3.2.0) Installing collected packages: detectron2 Running setup.py develop for detectron2 error: subprocess-exited-with-error

Γ— python setup.py develop did not run successfully.
β”‚ exit code: 1
╰─> [68 lines of output]
    running develop
    running egg_info
    writing detectron2.egg-info/PKG-INFO
    writing dependency_links to detectron2.egg-info/dependency_links.txt
    writing requirements to detectron2.egg-info/requires.txt
    writing top-level names to detectron2.egg-info/top_level.txt
    reading manifest file 'detectron2.egg-info/SOURCES.txt'
    adding license file 'LICENSE'
    writing manifest file 'detectron2.egg-info/SOURCES.txt'
    running build_ext
    /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/torch/utils/cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
      warnings.warn(msg.format('we could not find ninja.'))
    /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/torch/utils/cpp_extension.py:353: UserWarning:

                                   !! WARNING !!

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Your compiler (g++ 4.8.5) may be ABI-incompatible with PyTorch!
    Please use a compiler that is ABI-compatible with GCC 5.0 and above.
    See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html.

    See https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6
    for instructions on how to install GCC 5 or higher.
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                                  !! WARNING !!

      warnings.warn(ABI_INCOMPATIBILITY_WARNING.format(compiler))
    Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "/home/CaiYingJie/workshop/yolov7-main/detectron2/setup.py", line 147, in <module>
        setup(
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
        return distutils.core.setup(**attrs)
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 177, in setup
        return run_commands(dist)
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
        dist.run_commands()
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
        self.run_command(cmd)
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
        super().run_command(command)
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
        cmd_obj.run()
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/command/develop.py", line 34, in run
        self.install_for_development()
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/command/develop.py", line 114, in install_for_development
        self.run_command('build_ext')
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
        self.distribution.run_command(command)
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
        super().run_command(command)
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
        cmd_obj.run()
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
        _build_ext.run(self)
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
        self.build_extensions()
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 434, in build_extensions
        self._check_cuda_version(compiler_name, compiler_version)
      File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 830, in _check_cuda_version
        raise RuntimeError(
    RuntimeError: The current installed version of g++ (4.8.5) is less than the minimum required version by CUDA 10.2 (5.0.0). Please make sure to use an adequate version of g++ (>=5.0.0, <=8.0.0).
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error

Γ— python setup.py develop did not run successfully. β”‚ exit code: 1 ╰─> [68 lines of output] running develop running egg_info writing detectron2.egg-info/PKG-INFO writing dependency_links to detectron2.egg-info/dependency_links.txt writing requirements to detectron2.egg-info/requires.txt writing top-level names to detectron2.egg-info/top_level.txt reading manifest file 'detectron2.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'detectron2.egg-info/SOURCES.txt' running build_ext /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/torch/utils/cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) /home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/torch/utils/cpp_extension.py:353: UserWarning:

                               !! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (g++ 4.8.5) may be ABI-incompatible with PyTorch!
Please use a compiler that is ABI-compatible with GCC 5.0 and above.
See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html.

See https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6
for instructions on how to install GCC 5 or higher.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                              !! WARNING !!

  warnings.warn(ABI_INCOMPATIBILITY_WARNING.format(compiler))
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "<pip-setuptools-caller>", line 34, in <module>
  File "/home/CaiYingJie/workshop/yolov7-main/detectron2/setup.py", line 147, in <module>
    setup(
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 177, in setup
    return run_commands(dist)
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
    dist.run_commands()
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
    self.run_command(cmd)
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/command/develop.py", line 34, in run
    self.install_for_development()
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/command/develop.py", line 114, in install_for_development
    self.run_command('build_ext')
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
    self.distribution.run_command(command)
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
    _build_ext.run(self)
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 434, in build_extensions
    self._check_cuda_version(compiler_name, compiler_version)
  File "/home/CaiYingJie/anaconda3/envs/yolov7/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 830, in _check_cuda_version
    raise RuntimeError(
RuntimeError: The current installed version of g++ (4.8.5) is less than the minimum required version by CUDA 10.2 (5.0.0). Please make sure to use an adequate version of g++ (>=5.0.0, <=8.0.0).
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.