Skip to content

Python3 Installation Linux

kevinkovalchik edited this page Sep 3, 2021 · 5 revisions

Installation of Python3.7 (Linux)

MhcVizPipe requires Python 3.7 or higher to run. If you are using a recent Linux distribution, it is likely your system already meets 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 likely you have a Debian-based Linux distribution such as Ubuntu, and we will be giving you instructions for that kind of system. If you use Cent OS, Fedora, or something else that is not Debian-based you should be able to find lots of guides for how to install Python on them. Just do an internet search and then follow the directions.

It is quite possible that your Linux 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:

    1. Use this keyboard shortcut: ctrl-alt-t
  2. Verify if you have Python 3.7 or higher and Pip3:

    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.
  3. Installing Python 3

    1. Open a terminal (see step 1)
    2. Type or copy-paste the following command into the terminal and hit enter:
      sudo apt-get update
      
      1. You will be asked for your password.
      2. The computer will take a while updating its list of available packages. This doesn't install anything, it just ensures that when you do install something you get the latest version.
    3. Type or copy-paste the following command into the terminal and hit enter:
      sudo apt-get install python3
      
    4. Verify that both Python3.7 (or higher) and Pip are now installed (see step 2 above).

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

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