今天作数据分析,决定给Mac 安装Ipython Notebook。
Mac系统版本: OSX10.12.3 Sierra
输入:sudo pip install jupyter
结果报错 google之后 输入
sudo pip install jupyter --upgrade --ignore-installed six
仍然不行。 share/ 文件夹没有权限。
再次google, 看到这篇博客说的很详细: 解决mac-osx下pip安装ipython权限的问题
总之就是OSX 从 EI Capitan 开始 加入了SIP机制(System Integrity Protection),必须取消:
输入csrutil disable回车
重启Mac即可
如果想重新启动SIP机制重复上述步骤改用csrutil enable即可
也可以使用用户安装:
pip install jupyter --user