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
- 最新 https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/
- 删除
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
安装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
--- 她说, 她是仙,她不是神

浙公网安备 33010602011771号