mac上用python3

vim ~/.bash_profile
加入
alias python=”/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.6″
alias pip=”/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3.6″:
:wq
保存
source ~/.bash_profile
搞定!
试试python 出来3.6
pip出来对应版本,yeap!

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>