Python icon indicating copy to clipboard operation
Python copied to clipboard

mac安装python3,python --version一直显示老版本

Open IANlgbupt opened this issue 4 years ago • 0 comments

mac安装python3时,需要额外在~/.bashrc中增加内容: alias python3='/Library/Frameworks/Python.framework/Versions/3.10/bin/python3' alias python=python3

然后source ~/.bashrc 之后 python --version就是显示新安装的版本

IANlgbupt avatar Oct 28 '21 07:10 IANlgbupt