執(zhí)行
pip install ipython
一開始都很順利实蓬,到后面報錯
running install
running build
running build_py
creating build
creating build/lib.macosx-10.12-x86_64-2.7
copying scandir.py -> build/lib.macosx-10.12-x86_64-2.7
running build_ext
building '_scandir' extension
creating build/temp.macosx-10.12-x86_64-2.7
clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _scandir.c -o build/temp.macosx-10.12-x86_64-2.7/_scandir.o
You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.
error: command 'clang' failed with exit status 69
嘗試使用sudo
sudo pip install ipython
還是一樣的問題
看起來是xcode license的問題
sudo xcodebuild -license
根據(jù)提示敲回車挽荡,查看聲明,然后根據(jù)提示輸入agree 敲回車
接下來繼續(xù)安裝ipython
sudo pip install ipython
提示安裝成功泣侮,現(xiàn)在可以使用ipython了