When using conda env list to look up the environment list, I found two environments with same name. I think it's the problem why my vscode has the 'Import [module] could not be resolved Pylance(reportMissingImports)' error. But actually the code could run since I did install the package in the environment. How can I deal with it? It seems the two Pytorch enviroments only have the difference of the 'D:' or 'd:', but in anaconda there is only one Pytorch.
# conda environments:
#
base D:\anaconda3
Pytorch * D:\anaconda3\envs\Pytorch
Pytorch d:\anaconda3\envs\Pytorch
Import torch could not be resolved Pylance(reportMissingImports)
How to delete the second Pytorch and bring my vscode to normal?