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