Multiple version & library management memo in pythonbrew
- Download & install
$ curl -kL http://xrl.us/pythonbrewinstall | bash
- Add settings to .bashrc and .zshrc
[[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc
- Install multiple versions on pythonbrew
$ pythonbrew install 2.7.3
$ pythonbrew install 3.2.3
- Python version switching
$ pythonbrew switch 2.7.3 #2.7.Use 3
$ pythonbrew switch 3.2.3 #3.2.Use 3
- How to manage multiple libraries
$ pythonbrew venv create sample1 #Venv with the version you are currently using(sample1)Can be created. After creation, you can manage the library with pip
$ pythonbrew venv use sample1 #Use sample1 of venv
$ pythonbrew venv list #View the existing list of venv
$ pip install Django #Django is installed in your venv environment