$ pyenv versions
$ pyenv global 2.7.8 #OR Use: pyenv local 2.7.8
新建环境,检查环境列表:
1
$ pyenv virtualenv 2.7.8 my-2.7.8 #OR from current version: pyenv virtualenv venv34
$ pyenv virtualenvs
Activate环境:
1
pyenv activate <name>
pyenv deactivate
卸载环境,与卸载某个python版本相同:
1
pyenv uninstall my-virtual-env
相关变量:
1
PYENV_VIRTUALENV_CACHE_PATH
VIRTUALENV_VERSION
EZ_SETUP/GET_PIP # use ez_setup.py and get_pip.py from the specified location.
EZ_SETUP_URL/GET_PIP_URL # download ez_setup.py and get_pip.py from the specified URL.
SETUPTOOLS_VERSION/PIP_VERSION # install the specified version of setuptools and pip.