
#Install tk on mac for python install#
Now, it is time to install HomeBrew and to do so, just copy and paste the following command /usr/bin/ruby -e "$(curl -fsSL )"and press Enter. Wait till the system installs the XCode and press Install if asked. Now, type the command xcode-select -install and press the Enter key. So, let’s begin with installing XCode first and then HomeBrew using the below mentioned commands: If you do not have it installed then you would have to follow the method below to install HomeBrew first, we will be installing HomeBrew using XCode. So, we will be using HomeBrew to install the latest version of python on your Mac pc but you need to have installed HomeBrew on your Mac already. The HomeBrew is a package manager required in Mac or other Linux based OS to install other applications on Mac. The latest version of python is installed in your Mac and now you can use it for whatever programming needs you have. And done, python is installed successfully. Open the file and click on Continue to start the install. Click on the Latest Python 3 Release to start the download. Download the latest version of python from this link. That’s why you can follow the below methods to install python 3. Also, installing python 3 won’t remove python 2 and all your apps would work fine with it. I will tell you why not updated, because there are many apps in Mac still running on python 2 and not Python 3. So, there are various methods using which python can be installed and not updated.
But still, if you have a version lower then 37.4 then you can follow the methods below and get the latest version installed. If this command works then you already have the python version 3 installed. You can see the result in the next line itself, displaying the version of python installed on your Mac pc.īut, if that command doesn’t work for you then you may try python3 -version and then press the Enter key.
Now, enter the command python -version and press the Enter key.To check which version of Python you have installed in your Macbook, you need to type a single line code in your terminal.