mmrotate icon indicating copy to clipboard operation
mmrotate copied to clipboard

[Bug] can't mim install mmdet successfully

Open B1029038 opened this issue 1 year ago • 0 comments

Prerequisite

Task

I'm using the official example scripts/configs for the officially supported tasks/models/datasets.

Branch

master branch https://github.com/open-mmlab/mmrotate

Environment

when I try to using the command mim install mmdet this happened

  ImportError: cannot import name '_nt_quote_args' from 'distutils.spawn' (C:\Users\USER\anaconda3\envs\open-mmlab\lib\site-packages\setuptools\_distutils\spawn.py)
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for mmcv Running setup.py clean for mmcv Failed to build mmcv

Reproduces the problem - code sample

(open-mmlab) C:\Users\USER>mim install mmdet

  ImportError: cannot import name '_nt_quote_args' from 'distutils.spawn' (C:\Users\USER\anaconda3\envs\open-mmlab\lib\site-packages\setuptools\_distutils\spawn.py)
  [end of output]

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

× Encountered error while trying to install package. ╰─> mmcv

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

Reproduces the problem - command or script

  ImportError: cannot import name '_nt_quote_args' from 'distutils.spawn' (C:\Users\USER\anaconda3\envs\open-mmlab\lib\site-packages\setuptools\_distutils\spawn.py)
  [end of output]

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

× Encountered error while trying to install package. ╰─> mmcv

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

Reproduces the problem - error message

  ImportError: cannot import name '_nt_quote_args' from 'distutils.spawn' (C:\Users\USER\anaconda3\envs\open-mmlab\lib\site-packages\setuptools\_distutils\spawn.py)
  [end of output]

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

× Encountered error while trying to install package. ╰─> mmcv

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

Additional information

No response

B1029038 avatar Dec 28 '23 20:12 B1029038