mac 系统本身自带了 python 2.6版本,然后自己又下载了python 3.5,导致在终端命令中不能切换,
打开 ~/.bash_profile
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
# Setting PATH for Python 3.5
# The orginal version is saved in .bash_profile.pysave
# PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
# export PATH
# alias python="/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5"
export PATH=/opt/subversion/bin:$PATH
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
只想在终端中切换
问题
- 1.当安装pip install twisted时候遇到权限,所以加个sudo
网络不好,多尝试几遍成功了
也可以参照 http://blog.csdn.net/lijiang1991/article/details/51775896