The objective is to run the GUI with python 3.7 - because customtkinter libraries does not support python3.6 -, while all other scripts have to be run with python3.6.
-
To install Python3.7 run:
sudo apt update sudo apt install -y python3.7 -
Upgrade pip:
python3.7 -m pip install --upgrade pip
-
Ensure Python3.7 and pip are correctly installed:
python3.7 --version
Output should be something like:
Python 3.7.Xpython3.7 -m pip --version
Output should be something like:
pip X.X.X from path/lib/python3.7/site-packages (python 3.7) -
Execute these commands to choose the Python version:
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2
sudo update-alternatives --config python3
Select 1and choose Python 3.6.9 as Python3 default version (necessary to run mininet)
To see witch libraries we used, take a look at the requirements.txt file.