diff options
| author | Nar Kumar | 2016-11-07 12:33:28 +0100 |
|---|---|---|
| committer | Nar Kumar | 2016-11-07 12:33:28 +0100 |
| commit | b0bdee46d1c55268398f139f9cff4caac108b5ae (patch) | |
| tree | a69bdfb046d186b7be1774a3960584a97e5aa163 /docs/Homebrew-and-Python.md | |
| parent | a1de5000733db1bf0e91c60dd67efbff017560ba (diff) | |
| download | brew-b0bdee46d1c55268398f139f9cff4caac108b5ae.tar.bz2 | |
Only remove .pydistutils.cfg option, not command line
Diffstat (limited to 'docs/Homebrew-and-Python.md')
| -rw-r--r-- | docs/Homebrew-and-Python.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/Homebrew-and-Python.md b/docs/Homebrew-and-Python.md index 42fdd31ae..2500b8592 100644 --- a/docs/Homebrew-and-Python.md +++ b/docs/Homebrew-and-Python.md @@ -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: |
