Mac OS X 10.11.5 pip install getting Operation Not Permitted error

The new versions of Mac Os come with high restrictions on what you can do and is called: System Integrity Protection.

There is unfortunately not much we can do about that, and anyway the reason for System Integrity Protections seem to be reasonable.

Plus usually you do not want to install things systemwide, there is no reason to use sudo in front ofpip. If you don't have the permissions, there is likely a good reason.

You should be able to install any packages as user by using the --user:

pip install ipython --user

Which will have the advantage of installing in your home, where you have ~0 chance of breaking your system. Moreover it will not require you to use sudo that you shouldn't have to use anyway.

I would also encourage you to not use system-python on a mac:
1) It's never up to date, and is linked weirdly with some binary libraries
2) It's Python2.7, which will not be supported anymore soon

Prefer brew install python/brew install python3 that have complete separate Python installation that do not require sudo either. Or, anaconda that does the same, support multiple environment, and have binary of many python packages that Homebrew lacks.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值