2015-12-30 05:38:43 +00:00
|
|
|
# virtualenv
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Create virtual isolated Python environments.
|
2019-01-30 11:19:23 +00:00
|
|
|
> Homepage: <https://virtualenv.pypa.io/>.
|
2015-12-30 05:38:43 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Create a new environment:
|
2015-12-30 05:38:43 +00:00
|
|
|
|
|
|
|
`virtualenv {{path/to/venv}}`
|
|
|
|
|
2018-09-29 07:14:42 +01:00
|
|
|
- Customize the prompt prefix:
|
|
|
|
|
|
|
|
`virtualenv --prompt={{prompt_prefix}} {{path/to/venv}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Start (select) the environment:
|
2015-12-30 05:38:43 +00:00
|
|
|
|
|
|
|
`source {{path/to/venv}}/bin/activate`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Stop the environment:
|
2015-12-30 05:38:43 +00:00
|
|
|
|
|
|
|
`deactivate`
|