Getting VS-code on Windows-10 to use WSL's Python environment.

Mike Landis 21 Reputation points
2023-06-11T22:33:02.7433333+00:00

Motivation: If possible, I'm eventually hoping to get VS-code (under Windows-10) to use WSL(2)'s Python3.9 because 'pip install rebound' only completes successfully under WSL. If there are things I can do to make that work, I'd love to hear them.

Journey: Started here: https://thecodeblogger.com/2020/09/24/wsl-setup-vs-code-for-python-development/ Visual Studio Code and WSL(2) were already installed; so trying to get Windows Terminal to satisfy the 'prerequisites'. Followed https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701?hl=en-us&gl=us&rtc=1 to get Windows Terminal, but Windows Store hangs when I try to get Windows Terminal, so... https://4sysops.com/archives/install-windows-terminal-without-the-store-on-windows-server/ claims it's possible to get Windows Terminal without the Store. Inconveniently, 'PowerShell$ Add-AppxPackage Microsoft.VCLibs.x64.14.00.Desktop.appx' takes infinite time to install, stuck in "Hang on while we get your app's information..."

Summary: Windows Terminal sounds nice to have, but the 'real' objective is still that stated in Motivation above.

Notes: FYI, Apps & Features does not have a Windows Store to manage.

Developer technologies Visual Studio Setup
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-06-12T02:41:45.9033333+00:00

    Hi @Mike Landis

    Welcome to Microsoft Q&A! 

    You are using Visual Studio Code, which is different from Visual Studio. The tag “Visual Studio Setup” is related to Visual Studio, for more questions about Visual Studio Code, please post it to the Stack Overview tagged visual-studio-code forum or GitHub repository where you would get professional support for this product.

    Thanks for your understanding. 

    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

0 additional answers

Sort by: Most helpful

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.