今天作數據分析,決定給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