2324907dabfa35a08458b3e9e4ec520fc631025b
technology/linux/general/index.md
... | ... | @@ -8,6 +8,7 @@ |
8 | 8 | - [man_pages](man_pages) |
9 | 9 | - [mpd](mpd) |
10 | 10 | - [mpv](mpv) |
11 | +- [python](python) |
|
11 | 12 | - [rtv](rtv) |
12 | 13 | - [ssh](ssh) |
13 | 14 | - [systemctl](systemctl) |
technology/linux/general/python.md
... | ... | @@ -0,0 +1,18 @@ |
1 | +# python |
|
2 | + |
|
3 | +## configuring [virtualenv][] |
|
4 | +- install package |
|
5 | + ``` |
|
6 | + python3 -m pip install --user virtualenv |
|
7 | + ``` |
|
8 | +- create virtualenv |
|
9 | + ``` |
|
10 | + python3 -m virtualenv env_dir |
|
11 | + ``` |
|
12 | +- activating and leaving virtualenv |
|
13 | + ``` |
|
14 | + source env_dir/bin/activate |
|
15 | + deactivate |
|
16 | + ``` |
|
17 | + |
|
18 | +[virtualenv]: https://packaging.python.org/guides/installing-using-pip-and-virtualenv/ |