mac下面使用pyenv 管理Python - fubd/blowfish GitHub Wiki
安装pyenv
brew install wget
brew install pyenv
pyenv install -l
wget http://mirrors.sohu.com/python/3.7.1/Python-3.7.1.tar.xz -P ~/.pyenv/cache
pyenv install 3.7.1 -v
pyenv version
pyenv global 3.7.1
可能碰到的问题
如果pyenv version还是system,则需要配置环境变量https://github.com/eteplus/blog/issues/4
如果pyenv install 报错 zipimport.ZipImportError: can't decompress data; zlib not available
解决方案:https://github.com/pyenv/pyenv/issues/451