您的位置:首页 > 编程语言

mac 编程环境

2016-08-21 10:58 260 查看

新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)"[/code] 
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: