解决pip升级问题:关闭Mac的System Integrity Protection的方法

来源:互联网 发布:斑马网络 上汽撤资 编辑:程序博客网 时间:2024/06/07 10:40

解决pip升级问题:关闭Mac的System Integrity Protection的方法

标签(空格分隔): Python Mac


进来在Mac上安装python包的时候使用pip遇到一些问题,例如按照matplotlib的时候,需要将setuptools升级,但是似乎这个更改被系统保护了,死活无法升级,于是谷歌得到以下答案:

Screen Shot 2016-11-05 at 6.06.25 PM.png-160.7kB

于是再找怎么将这个System Integrity Protection关闭的方法:How to turn off system integrity protection on OS X (but don’t),如下:

Screen Shot 2016-11-05 at 6.06.09 PM.png-127.8kB

之后,果然OK。

但是该来源网站不推荐这样做,因为这降低了安全性:暂时我采取这个办法,毕竟在Linux上,root用户可是无所不能的��。

0 0
原创粉丝点击