mmrotate
mmrotate copied to clipboard
[Bug] can't mim install mmdet successfully
Prerequisite
- [X] I have searched Issues and Discussions but cannot get the expected help.
- [X] I have read the FAQ documentation but cannot get the expected help.
- [X] The bug has not been fixed in the latest version (master) or latest version (1.x).
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