mac 编程环境

新mac (EI Capitan),需要在python中使用xgboost,通过pip安装未成功。

配置pip

cat $HOME/Library/Application\ Support/pip/pip.conf
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com
[download]
trusted-host = mirrors.aliyun.com

安装brew


安装xgboost

https://xgboost.readthedocs.io/en/latest/build.html

python2

为了测试部分代码的兼容性,将系统自带的python,加到jupyter-notebook中

curl -O https://bootstrap.pypa.io/get-pip.py
sudo /usr/bin/python get-pip.py
/usr/bin/python -m pip install -U ipykernel  --user
/usr/bin/python -m ipykernel install
posted @ 2016-08-21 10:58  bregman  阅读(238)  评论(0)    收藏  举报