mmpose icon indicating copy to clipboard operation
mmpose copied to clipboard

[Bug] I can't setup the mmcv

Open oneperson88 opened this issue 5 months ago • 0 comments
trafficstars

Prerequisite

  • [x] I have searched Issues and Discussions but cannot get the expected help.
  • [x] The bug has not been fixed in the latest version(https://github.com/open-mmlab/mmpose).

Environment

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [16 lines of output] C:\Users\oneperson\AppData\Local\Temp\pip-install-f_jxml3i\mmcv_f808dabf36cc4f2a937fc4159d64ebb6\setup.py:5: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. from pkg_resources import DistributionNotFound, get_distribution, parse_version Traceback (most recent call last): File "", line 2, in File "", line 35, in File "C:\Users\oneperson\AppData\Local\Temp\pip-install-f_jxml3i\mmcv_f808dabf36cc4f2a937fc4159d64ebb6\setup.py", line 489, in ext_modules=get_extensions(), File "C:\Users\oneperson\AppData\Local\Temp\pip-install-f_jxml3i\mmcv_f808dabf36cc4f2a937fc4159d64ebb6\setup.py", line 446, in get_extensions ext_ops = extension( File "D:\Users\oneperson\miniconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1279, in CUDAExtension library_dirs += library_paths(device_type="cuda") File "D:\Users\oneperson\miniconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1497, in library_paths paths.append(_join_cuda_home(lib_dir)) File "D:\Users\oneperson\miniconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 2889, in _join_cuda_home raise OSError('CUDA_HOME environment variable is not set. ' OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root. [end of output]

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

× Encountered error while generating package metadata. ╰─> See above for output.

Reproduces the problem - code sample

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [16 lines of output] C:\Users\oneperson\AppData\Local\Temp\pip-install-f_jxml3i\mmcv_f808dabf36cc4f2a937fc4159d64ebb6\setup.py:5: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. from pkg_resources import DistributionNotFound, get_distribution, parse_version Traceback (most recent call last): File "", line 2, in File "", line 35, in File "C:\Users\oneperson\AppData\Local\Temp\pip-install-f_jxml3i\mmcv_f808dabf36cc4f2a937fc4159d64ebb6\setup.py", line 489, in ext_modules=get_extensions(), File "C:\Users\oneperson\AppData\Local\Temp\pip-install-f_jxml3i\mmcv_f808dabf36cc4f2a937fc4159d64ebb6\setup.py", line 446, in get_extensions ext_ops = extension( File "D:\Users\oneperson\miniconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1279, in CUDAExtension library_dirs += library_paths(device_type="cuda") File "D:\Users\oneperson\miniconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1497, in library_paths paths.append(_join_cuda_home(lib_dir)) File "D:\Users\oneperson\miniconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 2889, in _join_cuda_home raise OSError('CUDA_HOME environment variable is not set. ' OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root. [end of output]

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

× Encountered error while generating package metadata. ╰─> See above for output.

Reproduces the problem - command or script

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [16 lines of output] C:\Users\oneperson\AppData\Local\Temp\pip-install-f_jxml3i\mmcv_f808dabf36cc4f2a937fc4159d64ebb6\setup.py:5: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. from pkg_resources import DistributionNotFound, get_distribution, parse_version Traceback (most recent call last): File "", line 2, in File "", line 35, in File "C:\Users\oneperson\AppData\Local\Temp\pip-install-f_jxml3i\mmcv_f808dabf36cc4f2a937fc4159d64ebb6\setup.py", line 489, in ext_modules=get_extensions(), File "C:\Users\oneperson\AppData\Local\Temp\pip-install-f_jxml3i\mmcv_f808dabf36cc4f2a937fc4159d64ebb6\setup.py", line 446, in get_extensions ext_ops = extension( File "D:\Users\oneperson\miniconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1279, in CUDAExtension library_dirs += library_paths(device_type="cuda") File "D:\Users\oneperson\miniconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1497, in library_paths paths.append(_join_cuda_home(lib_dir)) File "D:\Users\oneperson\miniconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 2889, in _join_cuda_home raise OSError('CUDA_HOME environment variable is not set. ' OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root. [end of output]

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

× Encountered error while generating package metadata. ╰─> See above for output.

Reproduces the problem - error message

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [16 lines of output] C:\Users\oneperson\AppData\Local\Temp\pip-install-f_jxml3i\mmcv_f808dabf36cc4f2a937fc4159d64ebb6\setup.py:5: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. from pkg_resources import DistributionNotFound, get_distribution, parse_version Traceback (most recent call last): File "", line 2, in File "", line 35, in File "C:\Users\oneperson\AppData\Local\Temp\pip-install-f_jxml3i\mmcv_f808dabf36cc4f2a937fc4159d64ebb6\setup.py", line 489, in ext_modules=get_extensions(), File "C:\Users\oneperson\AppData\Local\Temp\pip-install-f_jxml3i\mmcv_f808dabf36cc4f2a937fc4159d64ebb6\setup.py", line 446, in get_extensions ext_ops = extension( File "D:\Users\oneperson\miniconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1279, in CUDAExtension library_dirs += library_paths(device_type="cuda") File "D:\Users\oneperson\miniconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1497, in library_paths paths.append(_join_cuda_home(lib_dir)) File "D:\Users\oneperson\miniconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 2889, in _join_cuda_home raise OSError('CUDA_HOME environment variable is not set. ' OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root. [end of output]

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

× Encountered error while generating package metadata. ╰─> See above for output.

Additional information

No response

oneperson88 avatar Jun 10 '25 09:06 oneperson88