Mac 配置Python3环境变量

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

你可能感兴趣的:(Python,Python,mac)