Anaconda/Miniconda is recommended to manage the running environment.
Python3:
sudo apt-get install python3.8
tkinter:
sudo apt-get install python3-tk
tkinter.image:
sudo apt-get install python3-pil python3-pil.imagetk
other packages:
pip install matplotlib scipy Pillow
create a conda env and activate
conda create -n sacmes python=3.8
conda activate sacmes
pip install matplotlib scipy Pillow
brew to install the tkinter
brew install python-tk
create a conda env and activate
conda create -n sacmes python=3.8
conda activate sacmes
pip install matplotlib scipy Pillow