Giter Club home page Giter Club logo

pythonbrew's Introduction

pythonbrew

CircleCI Go Report Card GitHub release

Note

This project is no longer under active development.

You can try to pyenv(under active development) instead of pythonbrew.

Overview

pythonbrew is the Python environments manager. it's easy to switch between them.

Inspired by perlbrew and rvm.

Installation

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/pythonbrew

Typically, 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/.pythonbrew

Setup

Bash

Add the following line at the end of the ~/.bashrc file

eval "$(pythonbrew init)"

Zsh

Add the following line at the end of the ~/.zshrc file

eval "$(pythonbrew init)"

Usage

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.4

Use a specific Python version permanently

pythonbrew switch 2.7.14
pythonbrew switch 3.6.4

Use a specific Python version in the current shell

pythonbrew use 3.6.4

List all installed Python versions

pythonbrew list

List all known installable Python versions

pythonbrew list -k

Uninstall specific Python versions

pythonbrew uninstall 2.7.14

Disable pythonbrew

pythonbrew off

Manage 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 proj

Remove all cache

pythonbrew cleanup

Update pythonbrew to the latest version

pythonbrew update

Show version

pythonbrew -v

See more details

pythonbrew -h
pythonbrew <command> -h

Recommended Packages

Debian and Ubuntu

apt-get install zlib1g-dev libssl-dev libreadline-dev

Fedora, Red Hat and CentOS

yum install zlib-devel openssl-devel readline-devel

macOS

brew install openssl
brew install readline

Uninstallation

rm /path/to/pythonbrew
rm -rf ~/.pythonbrew

Remove eval "$(pythonbrew init)" line at the setup file.

pythonbrew's People

Contributors

brandon-m-skinner avatar depp avatar djv avatar eburley avatar freeyoung avatar gthb avatar hrzhu avatar kylegibson avatar limeyd avatar make-github-pseudonymous-again avatar msabramo avatar offbyone avatar r4ntix avatar rjfv avatar saj avatar smokey42 avatar tgs avatar tomoyan596 avatar tritium21 avatar tuxlinuxien avatar utahta avatar vtbassmatt avatar wting avatar xkerman avatar yanjost avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.