Mac 安装gevent

直接运行 pip install gevent 安装必然会报错,正确的做法:

安装xcode

xcode-select --install

再次运行
pip install gevent安装成功。

mac126:Desktop mac126$ pip3 install gevent
Collecting gevent
  Using cached https://files.pythonhosted.org/packages/6c/49/681ec1026fe0313d1c6f00a58416f9ade121911f2fd55023e3e7cbd7803f/gevent-1.4.0-cp36-cp36m-macosx_10_6_intel.whl
Collecting greenlet>=0.4.14; platform_python_implementation == "CPython" (from gevent)
  Using cached https://files.pythonhosted.org/packages/f8/e8/b30ae23b45f69aa3f024b46064c0ac8e5fcb4f22ace0dca8d6f9c8bbe5e7/greenlet-0.4.15.tar.gz
Installing collected packages: greenlet, gevent
  Running setup.py install for greenlet ... done
Successfully installed gevent-1.4.0 greenlet-0.4.15

 

posted @ 2019-06-26 00:17  青春叛逆者  阅读(1439)  评论(0编辑  收藏  举报