xpol
V2EX  ›  macOS

El Capitan 下无数 pip 几近瘫痪。

  •  
  •   xpol · Oct 6, 2015 · 4419 views
    This topic created in 4057 days ago, the information mentioned may be changed or developed.
    各种报错, Operation not permitted 该找谁呢? pip 还是 Apple ?
    Supplement 1  ·  Oct 7, 2015

    感谢大家,根据Homebrew 官方文档 :

    sudo chown -R $(whoami):admin /usr/local

    是正解。

    Supplement 2  ·  Oct 7, 2015

    前一条附言跑题的,说的是修正 homebrew 的事情。

    修正后:

    pip install --user packagename

    可正常安装。

    12 replies  •  2015-10-07 10:22:32 +08:00
    Shared
    Shared
    Oct 6, 2015
    1
    关闭 SIP ,或者使用 /usr/local/
    humiaozuzu
    humiaozuzu
    Oct 6, 2015
    2
    用 homebrew 的 py
    sinbh
    sinbh
    Oct 6, 2015
    3
    sudo pip instal XX
    ffffwh
    ffffwh
    Oct 6, 2015
    4
    pip install --user xxx
    ?
    xpol
    xpol
    OP
    Oct 6, 2015
    5
    @Shared 如何使用 /usr/local/ 呢?

    @humiaozuzu 恩,正在 brew install python
    xmgit
    xmgit
    Oct 6, 2015
    6
    显然是 --user
    除了 homebrew python ,不懂很多人为什么还 sudo pip 的
    187j3x1
    187j3x1
    Oct 7, 2015
    7
    难道之前没用过 homebrew 么 py node ruby 都有隔离管理 3 楼动不动就 sudo 也是服了
    zander
    zander
    Oct 7, 2015
    8
    用 homebrew 的 python2 和 pip2 。
    humiaozuzu
    humiaozuzu
    Oct 7, 2015
    9
    @xpol homebrew 的安装路径就是带 local 的了,他的 pip 也是
    yujia
    yujia
    Oct 7, 2015
    10
    把 home-brew 修复好,然后用 home-brew 的 python2
    yujia
    yujia
    Oct 7, 2015
    11
    @xpol sudo chown -R `whoami` /usr/local
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2003 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 14:16 · PVG 22:16 · LAX 06:16 · JFK 09:16
    ♥ Do have faith in what you're doing.