visual studio 2022 can't detect conda and not letting me select torch compiler

Anamitra upadhyay 5 Reputation points
2024-02-27T14:36:56.56+00:00

User's image

tried all methods but still not detecting conda neither it is letting me to add pytorch compiler which i was able to do in my windows 10 machine

Developer technologies | Visual Studio | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Jose Jimenez 5 Reputation points
    2024-11-16T01:50:16.24+00:00

    @Anamitra upadhyay , I was having the same issue.

    This is how to resolv: Visual Studio 2022 can't detect Conda.

    On VS, go to Toolbar on Tools > Options.
    User's image

    In the options windows, search for: conda. Then, it would ask for the conda executable path (the path to the conda.exe, it depent's on the installed location).

    In my case, I set: C:\ProgramData\anaconda3\Scripts\conda.exe

    User's image

    Now, It's Working.

    User's image

    1 person found this answer helpful.
    0 comments No comments

  2. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2024-02-28T07:27:27.14+00:00

    Hi @Anamitra upadhyay

    Welcome to Microsoft Q&A! 

    Please refer to the document to manually install the Anaconda.

    Then, re-launch your VS2022 and check the Conda environment. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.