2018-11-05 04:07:28 +00: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-05 04:07:28 +00:00
|
|
|
|
|
|
|
- Create a new Python 3.6.6 virtual environment:
|
|
|
|
|
2020-02-07 22:52:26 +00:00
|
|
|
`pyenv virtualenv {{3.6.6}} {{virtualenv_name}}`
|
2018-11-05 04:07:28 +00:00
|
|
|
|
|
|
|
- List all existing virtual environments:
|
|
|
|
|
|
|
|
`pyenv virtualenvs`
|
2020-02-07 22:52:26 +00:00
|
|
|
|
|
|
|
- Activate a virtual environment:
|
|
|
|
|
|
|
|
`pyenv activate {{virtualenv_name}}`
|
|
|
|
|
|
|
|
- Deactivate the virtual environment:
|
|
|
|
|
|
|
|
`pyenv deactivate`
|