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

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install gcc --without-multilib

安装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
上一篇:OC 之 谓词


下一篇:MySQL数据库基本操作