0.系统版本
angel:~ $ more /System/Library/CoreServices/SystemVersion.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ProductBuildVersion</key>
<string>14C109</string>
<key>ProductCopyright</key>
<string>1983-2015 Apple Inc.</string>
<key>ProductName</key>
<string>Mac OS X</string>
<key>ProductUserVisibleVersion</key>
<string>10.10.2</string>
<key>ProductVersion</key>
<string>10.10.2</string>
</dict>
</plist>
1.安装homebrew
打开终端输入如下命令,就可以安装homebrew。
angel:~ $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
测试是否安装成功
angel:~ $ brew -v
Homebrew 0.9.5
表示安装成功。
参照 http://brew.sh/index_zh-cn.html
2.安装pyenv,pyenv-virtualenv
angel:~ $ brew install pyenv
验证是否安装成功
angel:~ $ pyenv -v
pyenv 20150326
angel:~ $ pyenv-virtualenv --version
/usr/local/bin/pyenv-virtualenv: line 127: pyenv-prefix: command not found
/usr/local/bin/pyenv-virtualenv: line 130: pyenv-prefix: