Mac python 环境变量配置

open ~/.bash_profile

export PATH=${PATH}:/Library/Frameworks/Python.framework/Versions/3.7/bin
alias python="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7"

export PATH=${PATH}:/Library/Frameworks/Python.framework/Versions/3.7/bin
alias pip="/Library/Frameworks/Python.framework/Versions/3.7/bin/pip3"

source ~/.bash_profile

你可能感兴趣的:(Mac python 环境变量配置)