Installing pip on macOS Sierra

前端 未结 7 1064
执念已碎
执念已碎 2021-01-31 20:11

I\'ve been trying to install pip on macOS sierra via brew, but every time it completes without installing the binaries in /usr/local/Cellar/python/2.7.13/bin.

7条回答
  •  故里飘歌
    2021-01-31 20:45

    Something must be wrong with your brew installation.

    Latest macOS version.

     ~/ brew reinstall python
    ==> Reinstalling python
    ==> Downloading https://homebrew.bintray.com/bottles/python-2.7.13.sierra.bottle.tar.gz
    Already downloaded: ~/Library/Caches/Homebrew/python-2.7.13.sierra.bottle.tar.gz
    ==> Pouring python-2.7.13.sierra.bottle.tar.gz
    ==> Using the sandbox
    ==> /usr/local/Cellar/python/2.7.13/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=installed.txt --install-scripts=/usr/local/Cellar/python/2.7
    ==> /usr/local/Cellar/python/2.7.13/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=installed.txt --install-scripts=/usr/local/Cellar/python/2.7
    ==> /usr/local/Cellar/python/2.7.13/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=installed.txt --install-scripts=/usr/local/Cellar/python/2.7
    ==> Caveats
    Pip and setuptools have been installed. To update them
      pip install --upgrade pip setuptools
    
    You can install Python packages with
      pip install 
    
    They will install into the site-package directory
      /usr/local/lib/python2.7/site-packages
    
    See: https://github.com/Homebrew/brew/blob/master/docs/Homebrew-and-Python.md
    
    .app bundles were installed.
    Run `brew linkapps python` to symlink these to /Applications.
    ==> Summary
    

提交回复
热议问题