Multiple version & library management memo in pythonbrew

  1. Download & install
$ curl -kL http://xrl.us/pythonbrewinstall | bash
  1. Add settings to .bashrc and .zshrc
[[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc
  1. Install multiple versions on pythonbrew
$ pythonbrew install 2.7.3
$ pythonbrew install 3.2.3
  1. Python version switching
$ pythonbrew switch 2.7.3 #2.7.Use 3
$ pythonbrew switch 3.2.3 #3.2.Use 3
  1. 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

Recommended Posts

Multiple version & library management memo in pythonbrew
[Internal_math version (2)] Decoding the AtCoder Library ~ Implementation in Python ~
PyTorch memo (dimension management)
[R] [Python] Memo to read multiple csv files in multiple zip files