Skip to content

Commit

Permalink
Only remove .pydistutils.cfg option, not command line
Browse files Browse the repository at this point in the history
  • Loading branch information
Nar Kumar committed Nov 7, 2016
1 parent a1de500 commit b0bdee4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/Homebrew-and-Python.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ Similarly, Pip can be used to upgrade itself via:

The normal `pip install --user` is disabled for brewed Python. This is because of a bug in distutils, because Homebrew writes a `distutils.cfg` which sets the package `prefix`.

A possible workaround (which puts executable scripts in `~/Library/Python/<X>.<Y>/bin`) is:

pip install --user --install-option="--prefix=" <package-name>

## `site-packages` and the `PYTHONPATH`

The `site-packages` is a directory that contains Python modules (especially bindings installed by other formulae). Homebrew creates it here:
Expand Down

0 comments on commit b0bdee4

Please sign in to comment.