$ cd /Library/Frameworks/amework/Versions/3.9/bin
#Delete python 2 install python 3 mac how to#
How To Fix Still Use Old PIP Version Issue After Install Python 3.
So you can run the command python3.9 to invoke python 3.9 interactive interpreter.Lrwxr-xr-x 1 root admin 9 Jan 23 14:15 python3 -> python3.9 Go to /Library/Frameworks/amework/Versions/3.9/bin directory, list all the files inside the directory, you can see the command file python3 is linked to another executable file python3.9.Library/Frameworks/amework/Versions/3.9/bin:/Library/Frameworks/amework/Versions/2.7/bin. Run echo $PATH command in a terminal, you can see python 3.9 and python 2.7 ‘s bin directory are all at the beginning of the PATH system environment variable.But how to make python command invokes python 3.7 or python 3.9 instead of python 2.7, you can follow the below steps.
To get the current python version, add uppercase -V as the python command parameter like below.Then you can go back to the terminal bash environment again. To exit the Python interactive interpreter, input command exit().Type "help", "copyright", "credits" or "license" for more information. To use the new Python version, you need to run python3 in the terminal.Now when you execute the python command in a terminal, you will find it still uses the old version which is 2.7.How To Fix Installed Python3 But Still Python 2.7 Is Used Error. Now you can see all the 3 python version has been installed in the /Library/Frameworks/amework/Versions folder.Ģ.Input /Library/Frameworks/amework/Versions in above Go to Folder dialog, click Go button.Open a Finder, click Go -> Go to Folder… menu item at the top menu bar. When the installation process completes successfully.After download, double click the installer to install it follow the wizard ( you can refer Install Python Linux And MacOS Version Tutorial ).
#Delete python 2 install python 3 mac download#
Go to python download page and click the related link to download.