Python3 Installation Mac - CaronLab/MhcVizPipe GitHub Wiki

Installation of Python (Mac OS)

MhcVizPipe requires Python 3.7 or higher to run. If you are using a recent Mac operating system, it is likely you
already meet this requirement. However, if you are unsure how to go about checking this, the following instructions will help you check the version of Python on your system and install a new version if needed.

It is quite possible that your Mac computer already has Python3.7 or or a higher version installed as well as Pip (which will be used later to install MhcVizPipe). To check this:

  1. Open the Terminal (2 options):

    1. Go to Finder/Applications/Utilities/Terminal
    2. Open Launchpad and type Terminal in the search box
  2. Verify if you have Python 3.7 or higher and Pip3 (2 options):

    1. In the terminal, type (and then hit enter):
      python3
      
      and again type
      pip3
      
      (then hit enter)
      1. If both show Python version 3.7 or higher, good. You can skip ahead to Installing third-party software. If not, go on to step 3 to install it.
        • Note: It is possible that MacOS will prompt you to install Python3 when you enter python3 in the terminal. If happens, you can follow the instructions. After it is installed, you will likely be inside Python running through the terminal. You will want to exit Python and then repeat step 2.i to confirm Pip is also properly installed. Type exit() and hit enter to return to the normal terminal, the repeat step 2.i.
  3. Download and install Python 3.7 and Pip

    1. To download Python3.7 and Pip, follow this link or copy-paste it into your web browser: https://www.python.org/ftp/python/3.7.8/python-3.7.8-macosx10.9.pkg.
    2. After it downloads, open it up and follow the installation instructions.
  4. Verify that both Python3.7 and Pip are now installed (see step 2).

  5. Install SSL certificates for Python (something that improves the security of your Python and Pip installations)

    1. Open a terminal (see step 1)
    2. Type or copy paste the following command: pip3 install certifi
    3. Hit enter

If you encounter problems, try consulting a more in-depth guide.

Go to the next step: Installing third-party software.