Mac下安裝ipython

執(zhí)行

pip install ipython

一開始都很順利,到后面報(bào)錯(cuò)

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了


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容