tldr/pages/common/virtualenv.md

21 lines
369 B
Markdown
Raw Normal View History

2015-12-30 05:38:43 +00:00
# virtualenv
> 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
- 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`