About 50 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. python - How to activate a 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 …

  3. 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 environment …

  4. python - Why do I get a "ModuleNotFoundError" in VS Code despite …

    Jun 19, 2019 · Do you really need to reload VSCode? Just rerunning the Python code should be enough, no? That said, reloading might be the easiest way to do that, like if you have a bunch of …

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

  6. 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 botom right of the …

  7. python - Auto activate virtual environment in Visual Studio Code ...

    Oct 17, 2019 · According to current vscode docs, pipenv, venv and pyenv (the three most common virtual envs) all respond to this setting in .vscode/settings.json which @BrianReinhold isn't always …

  8. How to set Visual Studio Code Python Interpreter to a Python Virtual ...

    Aug 8, 2024 · Are you creating a virtual environment using the command python -m venv myvenv? Or try restarting vscode after clearing the cache and then opening it up to create a new virtual environment.

  9. VSCode; RemoteSSH; Python; venv; .env - LD_LIBRARY_PATH

    Is there a straightforward way (using VSCode; Remote-SSH; and python with venv) to use a bespoke environment variable (for a single VSCode project) in order to configure LD_LIBRARY_PATH before …

  10. python - VSCode does not recognize venv - Stack Overflow

    Jul 12, 2021 · "python.venvFolders": [ "~/.venv/Scripts" ] I activated the venv manually using VSCode integrated terminal. The problem still isn't solved. This is a screenshot of my problem: I know how to …