-
Notifications
You must be signed in to change notification settings - Fork 2
Virtual Environments
itzmetanjim edited this page Jul 1, 2025
·
2 revisions
Virtual environments allow you to isolate your project's Python dependencies from your system-wide Python installation.
When creating a new PyPositron project, you can choose to create a virtual environment. If you didn't create one during project setup, you can create it later using the following command:
positron venvTo activate your project's virtual environment, run:
On Linux/Mac:
source linuxvenv/bin/activateOn Windows:
winvenv\Scripts\activateTo install Python packages in your project's virtual environment, use the positron install command:
positron install <library_name>Dependencies for your project are typically listed in requirements.txt. You can install all dependencies using:
pip install -r requirements.txt