事情本来很简单,但是过程中在不断有错误出现。。主要是clang..
安装好Xcode以及brew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
需要先安装libevent
brew install libevent
还需要安装cython
pip install cython
接着就是greenlet
sudo pip install greenlet
如果可以很幸运的安装gevent
sudo pip install gevent
如果没有的话
export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future"
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: command 'cc' failed with exit status 1
那么
sudo ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" pip install greenlet
围观我的Github Idea墙, 也许,你会遇到心仪的项目