I have both python38,37 and anaconda installed, OS - win10,x64.
I could not install torch in py38,37 - but installed it in anaconda.
system env var 'Path' has:
- C:\python38\Scripts\
- C:\python38\
- C:\python37\Scripts\
- C:\python37\
- C:\anaconda3\
- C:\anaconda3\Scripts
In vscode, despite that i have selected interpreter as Python 3.8.3 base-conda
I still can't import torch. But when using jupyter notebook, I can import torch:
import torch
print(torch.__path__)
['C:\\anaconda3\\lib\\site-packages\\torch']
How to import torch in vs code and choose the right interpreter?