About 67,700 results
Open links in new tab
  1. How can I set up a virtual environment for Python in Visual Studio …

    Jan 9, 2019 · In my project folder I created a venv folder: python -m venv venv When I run command select python interpreter in Visual Studio Code, my venv folder is not shown. I went …

  2. python - how to activate virtual env in vs code? - Stack Overflow

    Aug 31, 2021 · You need to switch your Python interpreter to point to the one within your venv when you switch the interpreter VS code it create a .vscode folder within your workspace with …

  3. Creating a virtual Python environment in VS code

    Mar 6, 2024 · A .venv folder will be created, and the environment should be activated automatically when you open the folder with vscode (you could select the python to use at the …

  4. VS Code not recognizing .env file inside workspace folder (.venv)

    Apr 19, 2023 · In order for Python to automatically detect a .env file within a workspace folder, you need to ensure that you have the Python extension installed in VS Code. Once you have the …

  5. python 3.x - Activate venv in vs code - Stack Overflow

    Oct 6, 2021 · If so, you should edit your venv/bin/activate script so that it has the correct value for the VIRTUAL_ENV variable. In your project, do you have a .vscode/settings.json file that is …

  6. python - Visual Studio Code does not detect Virtual Environments ...

    Mar 30, 2021 · Visual Studio Code does not detect virtual environments. I run vscode in the folder where the venv folder is located, when I try to select the kernel in vscode I can see the main …

  7. How to debug python Azure Functions, that use .venv, inside …

    Oct 27, 2023 · Create new python virtual environment: python -m venv .venv .venv activated with .\.venv\Scripts\activate Initialize new Azure Function: func init then func new I use the Azurite …

  8. python - can't automatically activate virtual environment in vscode ...

    Feb 20, 2024 · I'm trying to automatically activate the virtual environment .venv in the terminal whenever I open the VS Code workspace. I have Python installed via pyenv. I tried adding the …

  9. python - VS Code doesn't change the virtual environment - Stack …

    Jul 20, 2025 · Check the path of the selected environment at the bottom right corner, if the correct path is not selected, click it and choose the correct env, or you can simply add the path to the …

  10. How to add a virtual environment to VS Code's launch.json?

    Apr 6, 2021 · Sometimes launch.json works without specifying the python attribute, but other times the vscode-debugger use the global python instead of the one inside the venv folder, so …