一、Mac系統自帶pythonpython
二、用戶安裝的pythonbash
3 、更改系統環境變量~/.bash_profile,添加下面內容io
export PATH=/Library/Frameworks/Python.framework/Versions/3.6/bin:$PATH
alias python="/Library/Frameworks/Python.framework/Versions/3.6/bin/python3"變量
四、更改PyCharm python版本file
preferences > project:xxxx > project interpreterim