Sunday, May 24, 2015

Pyenv Daily Operations

If you want to upgrade pyenv  then
$ cd ~/.pyenv
$ git pull
 
To list all available Python versions:
$ pyenv install -l

To install a Python version:
$ pyenv install 3.4.3

To set the global Python version

$ pyenv global <version>

You can create virtualenv

$ pyenv virtualenv 3.4.3 Django
 
 
You may activate and de-activate virtualenvs using
 
$ pyenv activate <name>
$ pyenv deactivate 
 
You can set a folder specific Python version or virtual environment
 
$ pyenv local <virtualenv or version>
  
Uninstall Python version or virtualenv
 

$ pyenv uninstall <virtualenv or version>
 

No comments:

Post a Comment