Python Forum
Virtual Environments - Organization (VS Code)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Virtual Environments - Organization (VS Code)
#1
Hello All,

I have a few questions about organizing my virtual environments using VS code. My thought was to create a few venvs that would meet my needs depending on the common type of projects and related packages. I wanted to store them in one location and keep my project files in another location as opposed to placing a venv in each project folder. For example:

Quote:My_Python_Projects (Main Project Folder)
My_Project_1
-project_1.py
My_Project_2
-project_2.py
My_Project_3
-project_3.py

My_Python_Venvs (Main Venv Folder)
My_Venv_1
-venv_files_folders_1.py
My_Venv_2
-venv_files_folders_2.py
My_Venv_3
-venv_files_folders_3.py
My thinking was that I could then open up a project in VS Code and simply select one of the existing venvs. Is this possible or must I put the venvs in the actually project file each time.

Hope it makes sense. Thanks in advance for any advice.
Reply


Messages In This Thread
Virtual Environments - Organization (VS Code) - by JaysonWonder - Jan-25-2023, 01:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Organization of project directories wotoko 3 463 Mar-02-2024, 03:34 PM
Last Post: Larz60+
  Best practice on using virtual environments in Python bytecrunch 6 906 Feb-14-2024, 03:22 PM
Last Post: snippsat
Question Virtual Environment (using VS Code) Ashcora 4 14,596 Feb-15-2023, 07:17 PM
Last Post: snippsat
  Keeping up with IDEs and Virtual Environments... bytecrunch 7 2,581 Sep-05-2022, 08:04 PM
Last Post: snippsat
  I don't understand pip and environments snakes 3 1,262 Jul-31-2022, 08:17 PM
Last Post: snakes
  Use different Anaconda environments on Linux Mint and Spyder StaLLoNe_CoBRa 0 1,899 Jan-20-2021, 03:12 AM
Last Post: StaLLoNe_CoBRa
  pip and venv virtual environments soupworks 2 2,319 Dec-30-2020, 11:38 PM
Last Post: soupworks
  Virtual Assistant code is looping back in python ShishirModi 1 2,558 Oct-13-2020, 08:04 AM
Last Post: Nickd12
  Virtual Environments pneveux 1 1,851 Apr-04-2019, 09:15 PM
Last Post: Larz60+
  Embedding, windows, and virtual environments mariofutire 0 3,064 Sep-14-2018, 10:30 AM
Last Post: mariofutire

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020