Python Environment manager
This project is no longer under active development.
You can try to pyenv(under active development) instead of pythonbrew.
pythonbrew is the Python environments manager. it's easy to switch between them.
The recommended way to download from each releases and put it somewhere in your PATH.
Or you can get as below
go get -u github.com/utahta/pythonbrew/cmd/pythonbrewTypically, pythonbrew install packages into ~/.pythonbrew.
If you want to install packages into somewhere else, you can do that by setting a PYTHONBREW_ROOT environment variable
export PYTHONBREW_ROOT=/path/to/.pythonbrewAdd the following line at the end of the ~/.bashrc file
eval "$(pythonbrew init)"Add the following line at the end of the ~/.zshrc file
eval "$(pythonbrew init)"pythonbrew(pybrew) command [options]
Install some pythons
pythonbrew install 3.6.4
pythonbrew install -v 3.6.4
pythonbrew install -f 3.6.4
pythonbrew install -C "CFLAGS=-I/path/to/include" -C "LDFLAGS=-L/path/to/lib" 3.6.4
pythonbrew install --no-ensurepip 3.6.4
pythonbrew install --no-symlink 3.6.4
pythonbrew install https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
pythonbrew install 2.7.14 3.6.4Use a specific Python version permanently
pythonbrew switch 2.7.14
pythonbrew switch 3.6.4Use a specific Python version in the current shell
pythonbrew use 3.6.4List all installed Python versions
pythonbrew listList all known installable Python versions
pythonbrew list -kUninstall specific Python versions
pythonbrew uninstall 2.7.14Disable pythonbrew
pythonbrew offManage environments (using virtualenv)
pythonbrew venv proj # Create proj if not exists, Use proj if exists
pythonbrew venv -p 2.7.14 proj2
pythonbrew venv -l
pythonbrew venv --rm projRemove all cache
pythonbrew cleanupUpdate pythonbrew to the latest version
pythonbrew updateShow version
pythonbrew -vSee more details
pythonbrew -h
pythonbrew <command> -hapt-get install zlib1g-dev libssl-dev libreadline-devyum install zlib-devel openssl-devel readline-develbrew install openssl
brew install readlinerm /path/to/pythonbrew
rm -rf ~/.pythonbrewRemove eval "$(pythonbrew init)" line at the setup file.
No open issues yet, or sync has not completed.