Added pyenv install script and readme
[webi-installers/.git] / pyenv / README.md
1 ---
2 title: pyenv
3 homepage: https://github.com/pyenv/pyenv
4 tagline: |
5   pyenv: Simple Python Version Management
6 ---
7
8 ### Updating `pyenv`
9
10 ```bash
11 pyenv update
12 ```
13
14 ## Cheat Sheet
15
16 ### List available python versions:
17
18 ```bash
19 pyenv install -l
20 ```
21
22 ### Install Python versions:
23
24 ```bash
25 pyenv install <version>
26 pyenv rehash
27 ```
28
29 ### pyenv versions
30
31 List installed versions:
32 ```bash
33 pyenv versions
34 ```
35
36 ### pyenv local
37
38 Sets a local application-specific Python version:
39 ```bash
40 pyenv local 2.7.6
41 ```
42
43 Unset the local version:
44 ```bash
45 pyenv local --unset
46 ```
47
48 ### List existing virtualenvs
49 ```bash
50 pyenv virtualenvs
51 ```
52
53 ### Create virtualenv
54
55 From current version with name "venv35":
56 ```bash
57 pyenv virtualenv venv35
58 ```
59 From version 2.7.10 with name "venv27":
60 ```bash
61 pyenv virtualenv 2.7.10 
62 venv27
63 ```
64 ### Activate/deactivate
65
66 ```bash
67 pyenv activate <name>
68 pyenv deactivate
69 ```
70
71 ### Delete existing virtualenv
72 ```bash
73 pyenv uninstall venv27
74 ```