NVIDIA / apex

A PyTorch Extension: Tools for easy mixed precision and distributed training in Pytorch
BSD 3-Clause "New" or "Revised" License
8.2k stars 1.36k forks source link

Failed to install. #1708

Open pengsl-lab opened 11 months ago

pengsl-lab commented 11 months ago

Describe the Bug An unexpected error occurred while trying to install apex following the official website command.

Expected Behavior

File "/home/zengww/software/localcolabfold/conda/envs/apex-python/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
  cmd_obj.run()
File "/home/zengww/software/localcolabfold/conda/envs/apex-python/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run
  _build_ext.run(self)
File "/home/zengww/software/localcolabfold/conda/envs/apex-python/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
  self.build_extensions()
File "/home/zengww/software/localcolabfold/conda/envs/apex-python/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions
  build_ext.build_extensions(self)
File "/home/zengww/software/localcolabfold/conda/envs/apex-python/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 468, in build_extensions
  self._build_extensions_serial()
File "/home/zengww/software/localcolabfold/conda/envs/apex-python/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 494, in _build_extensions_serial
  self.build_extension(ext)
File "/home/zengww/software/localcolabfold/conda/envs/apex-python/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
  _build_ext.build_extension(self, ext)
File "/home/zengww/software/localcolabfold/conda/envs/apex-python/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 556, in build_extension
  depends=ext.depends,
File "/home/zengww/software/localcolabfold/conda/envs/apex-python/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 500, in unix_wrap_ninja_compile
  with_cuda=with_cuda)
File "/home/zengww/software/localcolabfold/conda/envs/apex-python/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/zengww/software/localcolabfold/conda/envs/apex-python/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 Environment python=3.7 pytorch=1.7.1 cuda=11.0

pengsl-lab commented 11 months ago

If anyone has the same problem, feel free to talk.

52Hzaaa commented 4 months ago

Has the problem been solved so far?I had a similar problem