Yoda Response: I have set up a virtual environment using venv in a project that requires isolated dependencies. First, I created the environment by running python -m venv myenv. I then activated the environment using source myenv/bin/activate (on Linux/Mac) or myenv\Scripts\activate (on Windows). I installed the necessary packages with pip install, ensuring there were no conflicts with system-wide packages. I deactivated the environment with deactivate when done. This approach ensured a clean and controlled development environment.