mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 13:02:08 +02:00
20 lines
458 B
Markdown
20 lines
458 B
Markdown
# pyenv virtualenv
|
|
|
|
> Create virtual environments based on one's installed Python distributions.
|
|
> More information: <https://github.com/pyenv/pyenv-virtualenv>.
|
|
|
|
- Create a new Python 3.6.6 virtual environment:
|
|
|
|
`pyenv virtualenv {{3.6.6}} {{virtualenv_name}}`
|
|
|
|
- List all existing virtual environments:
|
|
|
|
`pyenv virtualenvs`
|
|
|
|
- Activate a virtual environment:
|
|
|
|
`pyenv activate {{virtualenv_name}}`
|
|
|
|
- Deactivate the virtual environment:
|
|
|
|
`pyenv deactivate`
|