Use the following steps to start using the tool: Open the Terminal application Enter cd /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS Run./msupdate -help.
Python programming language is one of the most used programming language these days. Many Mac and even Windows users are using the programming language for various purposes. The python language has its own IDE to write programs and if you are already coding in python then you must know that python codes are saved in .py format. But many Mac users face the issue of updating python or don’t even know about the latest version of python.
- Jul 09, 2018 To view your Mac system logs, launch the Console app. You can launch it with Spotlight search by pressing Command+Space, typing “Console,” and then pressing Enter. You’ll also find it at Finder Applications Utilities Console. The Console app, also known as Console.app, is like a Windows Event Viewer for Mac.
- Nov 13, 2015 TechRepublic Premium The softwareupdate command is part of every version of OS X; it executes commands that will perform whichever update task (s) you wish to remotely manage.
So, if you are one of them and want to update or python or just install the python in your Mac device then follow the methods that I would write in this article.
Contents
- 2 How to Install/Update python on Mac?
How to check the python version?
To check which version of Python you have installed in your Macbook, you need to type a single line code in your terminal. So, let me guide you on you can do that:
- Open the Terminal on your Mac.
- Now, enter the command
python --version
and press the Enter key.
- You can see the result in the next line itself, displaying the version of python installed on your Mac pc.
But, if that command doesn’t work for you then you may trypython3 --version
and then press the Enter key. If this command works then you already have the python version 3 installed. But still, if you have a version lower then 37.4 then you can follow the methods below and get the latest version installed.
How to Install/Update python on Mac?
So, there are various methods using which python can be installed and not updated. I will tell you why not updated, because there are many apps in Mac still running on python 2 and not Python 3. Also, installing python 3 won’t remove python 2 and all your apps would work fine with it. That’s why you can follow the below methods to install python 3.
1. Using Python.org
- Download the latest version of python from this link.
- Click on the Latest Python 3 Release to start the download.
- Open the file and click on Continue to start the install.
- And done, python is installed successfully.
Mac Command Line List
The latest version of python is installed in your Mac and now you can use it for whatever programming needs you have.
2. Using HomeBrew & XCode
The HomeBrew is a package manager required in Mac or other Linux based OS to install other applications on Mac. 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. 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, let’s begin with installing XCode first and then HomeBrew using the below mentioned commands:
- Open the terminal on your Mac pc.
- Now, type the command
xcode-select --install
and press the Enter key.
- Wait till the system installs the XCode and press Install if asked.
- Now, it is time to install HomeBrew and to do so, just copy and paste the following command
/usr/bin/ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'
and press Enter.
- This will install HomeBrew on your system.
- To confirm the installation, you can check by entering the command
brew doctor
and press Enter. - If you see the result of the above command a
Your system is ready to brew.
then you have installed HomeBrew successfully. - Now, you are ready to install python3 on your Mac.
- It is easy to install python3 on Mac using HomeBrew, just enter the command
$ brew install python3
and wait till the installation is complete. - Done.
So, you have successfully installed XCode, HomeBrew & Python3 finally and now you can use python for all your programming needs. Also, if you have an interest in making apps for iOS then you may use XCode for that.
Since python3 is installed already on your Mac, though if you feel like checking and confirming the installation or check the version then you may refer the How to check the python version? section above. Or just simply enter the command $ python3 --version
in the terminal and you would know.
How to run Python with Python3?
Now, if you have previously installed the older version of python like python2 and now you have installed python3 using this article, let me tell you that you can run both the python on your Mac device now. So, previously while running or opening python2 you might have to enter a command. The same command would help you with running python3 too.
Mac Update Apps Command Lines
- Open the terminal, type python and press the Enter key.
- This command would open the python2 installed on your Mac and also show you the version of python installed.
- You can write programs or python commands if you want to. Else you can type exit() and press the Enter key to close the python2.
- Similarly, type python3 and press the Enter key.
- This would open the latest version of python3 installed on your Mac. Again you can exit python3 using the exit() command.
Installed Python3?
Python is one of the newest and growing programming language used in many fields for various applications. Likewise, it is used on Mac for various applications and the latest version of python launched for Mac till date is python 3 or python version 3.7.4. The article shares with you 2 methods to update python on Mac to its latest version. Also, it teaches you about a command that can help you check the version of python installed. I hope all of this helps you with installing the latest version of python. Though, if you have any queries don’t hesitate to ask it by commenting below.
Related Posts:
How to get updates for macOS Mojave or later
If you've upgraded to macOS Mojave or later, follow these steps to keep it up to date:
- Choose System Preferences from the Apple menu , then click Software Update to check for updates.
- If any updates are available, click the Update Now button to install them. Or click ”More info” to see details about each update and select specific updates to install.
- When Software Update says that your Mac is up to date, the installed version of macOS and all of its apps are also up to date. That includes Safari, iTunes, Books, Messages, Mail, Calendar, Photos, and FaceTime.
To find updates for iMovie, Garageband, Pages, Numbers, Keynote, and other apps that were downloaded separately from the App Store, open the App Store on your Mac, then click the Updates tab.
To automatically install macOS updates in the future, including apps that were downloaded separately from the App Store, select ”Automatically keep my Mac up to date.” Your Mac will notify you when updates require it to restart, so you can always choose to install those later.
How to get updates for earlier macOS versions
If you're using an earlier macOS, such as macOS High Sierra, Sierra, El Capitan, or earlier,* follow these steps to keep it up to date:
Mac Command Line Open File
- Open the App Store app on your Mac.
- Click Updates in the App Store toolbar.
- Use the Update buttons to download and install any updates listed.
- When the App Store shows no more updates, the installed version of macOS and all of its apps are up to date. That includes Safari, iTunes, iBooks, Messages, Mail, Calendar, Photos, and FaceTime. Later versions may be available by upgrading your macOS.
To automatically download updates in the future, choose Apple menu > System Preferences, click App Store, then select ”Download newly available updates in the background.” Your Mac will notify you when updates are ready to install.
* If you're using OS X Lion or Snow Leopard, get OS X updates by choosing Apple menu > Software Update.
How to get updates for iOS
Learn how to update your iPhone, iPad, or iPod touch to the latest version of iOS.
Learn more
Update Chrome Mac Command Line
- Learn how to upgrade to the latest version of macOS.
- Find out which macOS your Mac is using.
- You can redownload apps that you previously downloaded from the App Store.
- Your Mac doesn't automatically download large updates when it's using a Personal Hotspot.