commit 2324907dabfa35a08458b3e9e4ec520fc631025b parent 6996204d65ae1156d4110a37b0230d12361945df Author: pyratebeard <root@pyratebeard.net> Date: Wed, 21 Nov 2018 20:22:09 +0000 new python page, updated index Diffstat:
M | technology/linux/general/index.md | | | 1 | + |
A | technology/linux/general/python.md | | | 18 | ++++++++++++++++++ |
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/technology/linux/general/index.md b/technology/linux/general/index.md @@ -8,6 +8,7 @@ - [man_pages](man_pages) - [mpd](mpd) - [mpv](mpv) +- [python](python) - [rtv](rtv) - [ssh](ssh) - [systemctl](systemctl) diff --git a/technology/linux/general/python.md b/technology/linux/general/python.md @@ -0,0 +1,18 @@ +# python + +## configuring [virtualenv][] +- install package + ``` + python3 -m pip install --user virtualenv + ``` +- create virtualenv + ``` + python3 -m virtualenv env_dir + ``` +- activating and leaving virtualenv + ``` + source env_dir/bin/activate + deactivate + ``` + +[virtualenv]: https://packaging.python.org/guides/installing-using-pip-and-virtualenv/