xxxxxxxxxx
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install software-properties-common
sudo apt install python3.8
xxxxxxxxxx
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.x #change x to the python version you like to install
xxxxxxxxxx
python -m pip show scikit-learn # to see which version and where scikit-learn is installedpython -m pip freeze # to see all packages installed in the active virtualenvpython -c "import sklearn; sklearn.show_versions()"