mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
553 B
Plaintext
26 lines
553 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# pyenv virtualenv
|
|
|
|
> Create virtual environments based on one's installed Python distributions.
|
|
> More information: <https://github.com/pyenv/pyenv-virtualenv#usage>.
|
|
|
|
- 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`
|