1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/pyenv-virtualenv.md

21 lines
458 B
Markdown
Raw Normal View History

2018-11-04 22:07:28 -06:00
# pyenv virtualenv
> Create virtual environments based on one's installed Python distributions.
2019-05-29 14:53:57 +01:00
> More information: <https://github.com/pyenv/pyenv-virtualenv>.
2018-11-04 22:07:28 -06:00
- Create a new Python 3.6.6 virtual environment:
`pyenv virtualenv {{3.6.6}} {{virtualenv_name}}`
2018-11-04 22:07:28 -06:00
- List all existing virtual environments:
`pyenv virtualenvs`
- Activate a virtual environment:
`pyenv activate {{virtualenv_name}}`
- Deactivate the virtual environment:
`pyenv deactivate`