About 4,600,000 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 one level up like …

  2. How to set up python debugger for VS Code? - Stack Overflow

    May 27, 2020 · Then, follow the instructions from the VS Code docs on setting it up Python debug configurations in Visual Studio Code again for that workspace: The Python extension supports …

  3. 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 a settings.json …

  4. How to correctly set PYTHONPATH for Visual Studio Code

    Dec 6, 2018 · I did not manage to set the PYTHONPATH in Visual Studio Code, but I have found how to make VSCode inherit it from the systems environment variables.

  5. visual studio code - How to set environment variables in python when ...

    Dec 5, 2023 · However, if I run as Debug Python File, then the environment variables are loaded correctly (even without the settings.json edit). If I run the exact same project on vscode insiders …

  6. How can I change the Python version in Visual Studio Code?

    Jan 7, 2018 · If you selected python 3.6 in Visual Studio Code > View > Command Palette (CTRL+SHIFT+P) > Python: Select Interpreter, the play (execute) button will begin the call with the …

  7. python - VS Code not recognizing .env file inside workspace folder ...

    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 extension …

  8. Visual Studio Code does not detect Virtual Environments

    Mar 30, 2021 · This did not help with VS Code 17.1.2 on macOS. I had to set the python.venvPath variable in VS Code settings for VS Code to recognize my virtual environment.

  9. Python Interpreter Not Found on VS Code - Stack Overflow

    Jun 24, 2024 · Selecting Python interpreter (bottom right of screen) and selecting test framework (unittest/pytest) from VSC settings, then closing VSC and reopening it solved the problem for me.

  10. VS Code does not find Python kernel - Stack Overflow

    Nov 2, 2022 · python3 -m ipykernel install --name "new_venv" --user Restart VS Code. But the new_venv does not show in my list of kernels when opening a Jupyter notebook.