• Stars
    star
    1,443
  • Rank 32,613 (Top 0.7 %)
  • Language
    Go
  • License
    MIT License
  • Created about 14 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python Environment manager

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.

More Repositories

1

go-cronowriter

Time based rotating file writer
Go
56
star
2

Flask-MVC-Pattern

mvc pattern, using flask
Python
32
star
3

vue-vuex-typescript-sandbox

TypeScript
30
star
4

WP-Social-Bookmarking-Light

Embed share buttons on your WordPress article
PHP
29
star
5

trans.nvim

Google language translator plugin for Neovim
Go
22
star
6

go-validator

Data validation library for Go
Go
17
star
7

go-linenotify

Go client library for LINE Notify
Go
13
star
8

flask-on-fluxflex

Flask running on fluxflex
Python
11
star
9

trans

Google Translate CLI written in Go
Go
11
star
10

go-openuri

Open file and url in the same interface
Go
10
star
11

pyvbcode

Variable byte codes for Python
Python
6
star
12

swagger-doc

Easy visualize swagger.json using swagger-ui and redoc
Go
5
star
13

amazonsbr

Amazon Social Book Ranking
Python
5
star
14

node-chat

chat server. using node.js.
JavaScript
5
star
15

flask-gae-template

flask skeleton for google app engine. using buildout.
5
star
16

pyahocorasick

AhoCorasick
Python
4
star
17

FastLookUp-for-Chrome

a translator extension for chrome.
JavaScript
4
star
18

go-twitter-oauth

get twitter access token with golang
Go
3
star
19

dotmoji

Get the array of pixel valid flags from font
Ruby
3
star
20

echo-sessions

Sessions middleware for Echo
Go
3
star
21

edinet_code

Get the edinet code list from EDINET
Ruby
3
star
22

grpc-go-proxy-sandbox

Go
3
star
23

momoclo-channel

Notification tool for fan of Momoiro Clover Z
Go
2
star
24

docker-wordpress-php53

Docker image for Wordpress working with PHP 5.3
Shell
2
star
25

ameblogazo

ใ‚ขใƒกใƒผใƒใƒ–ใƒญใ‚ฐใฎ็”ปๅƒใฎใƒ€ใ‚ฆใƒณใƒญใƒผใƒ‰ใ‚’็ฐกๅ˜ใซใ™ใ‚‹ใƒฉใ‚คใƒ–ใƒฉใƒช
Ruby
2
star
26

gopl

gopl memo
Go
2
star
27

jsm-gui

GUI Application. Get the japanese stock market data.
Python
2
star
28

go-twitter

๐Ÿฆ
Go
2
star
29

wp2hatena

convert images of wordpress to hatena blog
Ruby
2
star
30

cookdo

cookdo
Ruby
1
star
31

go-webapp-proto

A web application prototype built with go
1
star
32

nsync

A named mutual exclusion lock written in Go
Go
1
star
33

grpc-go-protoreflect-sandbox

Go
1
star
34

go-atomicbool

Atomic boolean for Go
Go
1
star
35

maimailog

get the maimai play log
Ruby
1
star
36

sendbuffer-overflow

send buffer overflow test
Shell
1
star
37

sakura-vps-playbook

Sakura VPS playbook
Makefile
1
star
38

simple-tcpserver

tcp server using low level api
C++
1
star
39

ust_notice

Ustream้…ไฟก้€š็Ÿฅ
Ruby
1
star
40

pagenav

Web Page Navigation
Python
1
star