开发者

Conda environment with same name results in chaos

开发者 https://www.devze.com 2022-12-07 17:21 出处:网络
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(repo

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(reportMissingImpor开发者_JAVA百科ts)' 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?


Just keep write

anaconda3\envs

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号