首先解释一下造成的原因:
由于El Capitan引入了SIP机制(System Integrity Protection),默认下系统启用SIP系统完整性保护机制,无论是对于硬盘还是运行时的进程限制对系统目录的写操作。
这也是我们安装 pip install xx 失败的原因。
在mac下碰到OSError: [Errno 1] Operation not permitted:的问题,即使用 sudo 也无法解决,那肯定是 sip 在作怪了.
那么如何解决呢?
pip install xxx –user -U
对就是通过在命令后面加上 –user -U
OK,完美解决。
Congratulations @isme! You received a personal award!
Click here to view your Board
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @isme! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit