0% found this document useful (0 votes)
18 views

Install Python

This document provides instructions for installing Python and required libraries to use RTphitsGUI on Windows, Mac, and Linux. It details downloading and installing Python, installing pip, and using pip to install pydicom, matplotlib, and numpy libraries.

Uploaded by

cegi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Install Python

This document provides instructions for installing Python and required libraries to use RTphitsGUI on Windows, Mac, and Linux. It details downloading and installing Python, installing pip, and using pip to install pydicom, matplotlib, and numpy libraries.

Uploaded by

cegi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

How to install Python and

libraries required to use


RTphitsGUI
Contents

1 Windows........................................................ 2
2 Mac ............................................................... 3
3 Linux ............................................................. 4
1 Windows
1.1 Installation of Python
Download the latest version of Python (version later than 3.0) from
the following site
https://www.python.org/
Install Python using the downloaded installer.

Please put “check” in “Add


python.exe to PATH”

1.2 Installation of pip, the Python package installer


Open “command prompt” or “Windows PowerShell” and type the
following command
py -m ensurepip --upgrade

1.3 Installation of python libraries


Type the following commands to install the required python libraries
py -m pip install pydicom
py -m pip install matplotlib
py -m pip install numpy
2 Mac
2.1 Confirm the installation of Python
Open terminal and type the following command to check the existence
of Python
python --version
If it shows the version of Python, Python is already installed in your
computer.
Please make sure the version is later than 3.0.

If Python is not installed in your computer or the version is too old,


please install the latest version of Python to your computer. Please find
a way to install Python to your computer by searching with the key
words “Mac Python installation”.

2.2 Installation of pip, the Python package installer


Type the following command to install pip
python -m ensurepip –upgrade

2.3 Installation of python libraries


Type the following commands to install the required python libraries
pip install pydicom
pip install matplotlib
pip install numpy
3 Linux
3.1 Confirm the installation of Python
Open terminal and type the following command to check the existence
of Python
python --version
If it shows the version of Python, Python is already installed in your
computer.
Please make sure the version is later than 3.0.

If Python is not installed in your computer or the version is too old,


please install the latest version of Python to your computer. Please find
a way to install Python to your computer by searching with the key
words “Python installation” with your distribution.
You may be also required to install other python packages such as
python3-tk, python3-pil, python3-pil.imagetk, to use RTphitsGUI.
Please install them if it is needed.

3.2 Installation of pip, the Python package installer


Type the following command to install pip
Python -m ensurepip –upgrade

3.3 Installation of python libraries


Type the following commands to install the required python libraries
pip install pydicom
pip install matplotlib
pip install numpy

You might also like