xxxxxxxxxx
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
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
sudo su root
sudo apt update
sudo apt install python3.8 -y
python3.8 --version
python3 --version
xxxxxxxxxx
Ubuntu 14.04 (Trusty) and 16.04 (Xenial)
$ sudo add-apt-repository -y ppa:jblgf0/python
$ sudo apt-get update
$ sudo apt-get install python3.6
Ubuntu 16.10 and 17.04
$ sudo apt-get update
$ sudo apt-get install python3.6
After installation for Ubuntu 14.04, 16.04, 16.10 and 17.04
To invoke the Python 3.6 interpreter, run python3.6.
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()"