Differences

This shows you the differences between two versions of the page.

Link to this comparison view

student:python:virtualenv [2020/02/21 14:02] – created morrispjstudent:python:virtualenv [2025/10/15 17:56] (current) stewarmc
Line 1: Line 1:
 ===== 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.