Code Monkey home page Code Monkey logo

homebrew-python's Introduction

Overview

Homebrew-formulae to install Python 2.x and 3.x libraries, which are not yet well supported by pip install due to compiler and dependency issues.

Why not pip?

  • Numpy
    • using suite-sparse for fast sparse matrices (amd,umfpack)
    • optionally link against the openBLAS (--with-openblas)
  • SciPy
    • optionally link against the openBLAS (--with-openblas)
  • Matplotlib
    • Support all optional deps, installable by brew (e.g. PyGTK, cairo, ghostscript, tk, freetype and libpng)
  • matplotlib-basemap (library for plotting 2D data on maps)
    • Deps installed by brew (numpy, matplotlib, pillow, geos)
  • PIL (brew install pillow)
    • The Python Image Library in the newer distribution named "pillow"
    • Support for zlib/PNG
    • Based on the fast(er) graphicsmagick (imagemagick compatible)
    • Freetype2 support
    • Little-CMS (for color management)
  • PyGame (Game development and provides bindings to SDL)
  • ReText (Markdown Editor)
    • Supports enchant. (You first need to brew install enchant)
    • Some deps have to be installed via pip (it will tell you so)
  • Open an issue if your favorite is missing

Install

  • brew tap Homebrew/python
  • brew install scipy
  • brew test scipy --verbose

Troubleshooting

Check main Homebrew Troubleshooting guide and then open an issue in this tap here.

Python

We support Python 2.x and 3.x. For simultaneous support, use the brew install <formula> --with-python3. And if you don't need Python 2.x support at all: brew install <formula> --with-python3 --without-python

How to add a new formulae here

  • Fork this repository on github.
  • Clone to your Mac.
  • Read Homebrew and Python and look at the other formulae here.
  • In your locally cloned homebrew-python repo, create a new branch: git checkout --branch my_new_formula
  • Write/edit your formula (ruby file). Check the Homebrew wiki for details.
  • Test it locally! brew install ./my-new-formula.rb. Does it install? Note, how ./<formula>.rb will target the local file.
  • git push --set-upstream origin my_new_formula to get it into your github as a new branch.
  • If you have to change something, add a commit and git push.
  • On github, select your new branch and then click the "Pull Request" button.

homebrew-python's People

Contributors

samueljohn avatar tdsmith avatar mikemcquaid avatar jacknagel avatar branliu0 avatar xu-cheng avatar claudiodsf avatar robios avatar stefanozanella avatar acrogenesis avatar codedreality avatar arjun810 avatar adamv avatar dfinlay avatar derekbrokeit avatar frizlab avatar georgemarshall avatar jtriley avatar loganrosen avatar mariosnikolaou avatar mdrio avatar imichka avatar tingping avatar jamestwebber avatar simleo avatar

Watchers

James Cloos avatar Zhengyang  Pan 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.