Python virtualenv

From wikinotes
Revision as of 21:13, 3 August 2020 by Will (talk | contribs) (→‎Setup.py integration)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Safely manage python requirements within an environment.

Documentation

official docs https://virtualenv.pypa.io/en/stable/

Usage

# create venv
python -m virtualenv venv

# python interpreter within venv, with defined requirements
venv/bin/python

Setup.py integration

I don't believe this exists, but you could use python tox to manage building virtualenvs built from setup.py