tldr/pages/common/virtualenv.md

20 lines
326 B
Markdown
Raw Normal View History

2015-12-30 05:38:43 +00:00
# virtualenv
> Create virtual isolated Python environments.
2015-12-30 05:38:43 +00:00
- Create a new environment:
2015-12-30 05:38:43 +00:00
`virtualenv {{path/to/venv}}`
- Customize the prompt prefix:
`virtualenv --prompt={{prompt_prefix}} {{path/to/venv}}`
- Start (select) the environment:
2015-12-30 05:38:43 +00:00
`source {{path/to/venv}}/bin/activate`
- Stop the environment:
2015-12-30 05:38:43 +00:00
`deactivate`