Differences
This shows you the differences between two versions of the page.
| |
| student:python:virtualenv [2020/02/21 14:02] – created morrispj | student:python:virtualenv [2025/10/15 17:56] (current) – stewarmc |
|---|
| ===== Python Virtual Environments ===== | ===== Python Virtual Environments ===== |
| | * if a student on windows (in powershell) gets a warning about execution policy, they should consider: |
| | * Set-ExecutionPolicy RemoteSigned -Scope CurrentUser |
| | |
| [[https://virtualenv.pypa.io/en/stable/ | virtualenv]] is a tool for creating self-contained, isolated Python environments. This allows developers to use different versions of libraries, dependencies, and even python itself on a per-project basis. A virtual environment consists of several utilities and helper scripts installed inside of a directory and be "activated" prior to use by running a command that modifies several environment variables like $PATH to point to the versions installed inside of the virtual environment. | [[https://virtualenv.pypa.io/en/stable/ | virtualenv]] is a tool for creating self-contained, isolated Python environments. This allows developers to use different versions of libraries, dependencies, and even python itself on a per-project basis. A virtual environment consists of several utilities and helper scripts installed inside of a directory and be "activated" prior to use by running a command that modifies several environment variables like $PATH to point to the versions installed inside of the virtual environment. |
| |