Conda can be used to isolate packages well. Sometimes we install things in this environment through conda, and install things in conda's virtual environment through pip.
conda install command
conda install XXX
Take it for granted, uninstall command
conda uninstall XXX
This command will cause some problems from time to time, and the uninstallation fails
At this time, you can try the following two uninstall commands:
conda remove XXX
pip uninstall XXX
note:
Use pip to install when installing, and pip uninstall when uninstalling
Reference
1. Uninstall packages under conda environment
2. Conda uninstall mmcv error
3. Use conda to install and uninstall various packages