Return to site

Update Python 3 Mac Terminal

broken image
Python
Mac

Install Python 3 Terminal

Go to: Na-Rae Han's home page
Python
Update python 3 mac terminal 1
Mac upgrade python 3

Install Python 3 Terminal

Go to: Na-Rae Han's home page

Python 3 Mac Terminal

Python 3 Notes

[ HOME | LING 1330/2330 ]

Installing Python 3 on a Mac

<< Previous Note Next Note >>

Steps

  • Head to python.org. Click 'Downloads', then download the latest version from there:

    This downloads the 64-bit version of the latest Python release (3.8.5 as of August 2020).
    • Alternatively, if you start from the release page such as https://www.python.org/downloads/release/python-385/, you should scroll all the way to the bottom and choose 'macOS 64-bit installer', for OS X 10.9 and later. See screenshot here.
    • NOTE: If your Mac's OS version is older than 10.9 (year 2013), I recommend upgrading your OS first. If you are unable to, see this FAQ for how to install Python on an older version of Mac OS.
  • Proceed with installation. If everything goes fine, you should see an IDLE shortcut in your Launchpad.
  • Go ahead and try it out! Video tutorial here.

Should I Re-install?

If you already have a working version of Python on your laptop, you might be wondering if it is OK to keep it or you should re-install. The run-down:
  • Already have Python 3 but older version
    If you previously installed an earlier version of Python 3 (say, 3.3.1 or something), then you should either update it or simply un-install it and then install the newest version of Python 3. That way, you can make sure you are working in the exactly same setup with the rest of the class, which just might save you some headache stemming from a configuration unique to your machine.
  • I have Anaconda Python
    That works too! Make sure to update it to the latest 3.X version. There is one caveat: in LING 1330/2330, we will be using the interpretive shell interface via IDLE rather than Jupyter Notebook you probably have been using. This is how you launch IDLE for Anaconda Python:
    1. Open up a Terminal.
    2. Type in idle3 &, followed by ENTER. ('&' keeps Terminal usable while IDLE window is open.)

Python 2 vs Python 3. Python 2 is still on your system even though you've installed Python 3. In order to send commands to Python 3, you will need to enter python3 in the terminal. If you enter python, the command will be sent to Python 2. Assuming you've now installed Python 3, you can check it by running the following command in Terminal. Using Mac Finder Manager, navigate to your Downloads directory, and double-click on the python-3.6.5-macosx10.6.pkg file to install Python, Tkinter, and IDLE. Use the default options. (It's OK to delete the python-3.6.5-macosx10.6.pkg file after the installation is complete.) Open a Terminal window. If you use older versions of the Mac operating system but downloaded a new version of Python 3 from its official website, then you should be careful when trying to uninstall the program. Never modify or delete files related to the pre-installed Python by Apple. Mac OS X 10.8 comes with Python 2.7 pre-installed by Apple. If you wish, you are invited to install the most recent version of Python 3 from the Python website (A current 'universal binary' build of Python, which runs natively on the Mac's new Intel and legacy PPC CPU's, is available there. Download PythonTerminal for free. Integrating Python with Windows and Linux; in a Terminal fashion. PythonTerminal is a utility for Windows and Linux which allows the user to carry out functions on their computer by typing commands, which are interpreted into Python.





broken image